Skip to content

Commit

Permalink
Comment out this dangerous script
Browse files Browse the repository at this point in the history
  • Loading branch information
aahnik committed Dec 29, 2024
1 parent 50302f4 commit 43308bf
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions scripts/remig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@
# delete all existing migrations


cd src
# cd src

find . -path "*/migrations/*.py" -not -name "__init__.py" -delete
# find . -path "*/migrations/*.py" -not -name "__init__.py" -delete

rm db.sqlite3
# rm db.sqlite3

# recreate initial migrations
printf "\n\n \033[1;31m Warning!!! update the script to run migrations for all apps\033[0m\n \n\n"
sleep 2
python manage.py makemigrations users
python manage.py makemigrations home
python manage.py makemigrations courses
python manage.py makemigrations donations
python manage.py makemigrations activities
# # recreate initial migrations
# printf "\n\n \033[1;31m Warning!!! update the script to run migrations for all apps\033[0m\n \n\n"
# sleep 2
# python manage.py makemigrations users
# python manage.py makemigrations home
# python manage.py makemigrations courses
# python manage.py makemigrations donations
# python manage.py makemigrations activities


python manage.py migrate
# python manage.py migrate

# create superuser
printf "\n\n \033[1;31m CREATE SUPER USER\033[0m\n \n\n"
python manage.py createsuperuser
# # create superuser
# printf "\n\n \033[1;31m CREATE SUPER USER\033[0m\n \n\n"
# python manage.py createsuperuser

0 comments on commit 43308bf

Please sign in to comment.