Skip to content

Commit 43308bf

Browse files
committed
Comment out this dangerous script
1 parent 50302f4 commit 43308bf

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

scripts/remig.sh

+15-15
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@
1212
# delete all existing migrations
1313

1414

15-
cd src
15+
# cd src
1616

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

19-
rm db.sqlite3
19+
# rm db.sqlite3
2020

21-
# recreate initial migrations
22-
printf "\n\n \033[1;31m Warning!!! update the script to run migrations for all apps\033[0m\n \n\n"
23-
sleep 2
24-
python manage.py makemigrations users
25-
python manage.py makemigrations home
26-
python manage.py makemigrations courses
27-
python manage.py makemigrations donations
28-
python manage.py makemigrations activities
21+
# # recreate initial migrations
22+
# printf "\n\n \033[1;31m Warning!!! update the script to run migrations for all apps\033[0m\n \n\n"
23+
# sleep 2
24+
# python manage.py makemigrations users
25+
# python manage.py makemigrations home
26+
# python manage.py makemigrations courses
27+
# python manage.py makemigrations donations
28+
# python manage.py makemigrations activities
2929

3030

31-
python manage.py migrate
31+
# python manage.py migrate
3232

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

0 commit comments

Comments
 (0)