Commit 1cf0d0fc2143c8f3da725b162cd36e3ad985a3fa
1 parent
eecfb779
Exists in
master
and in
1 other branch
Date: 26/05/2016
By: Paul Carensac Version: 0.5.4 Install script is now a way for update Issue (closed): https://projects.irap.omp.eu/issues/3703 Major current version (0.5): https://projects.irap.omp.eu/versions/116
Showing
4 changed files
with
14 additions
and
4 deletions
Show diff stats
README.md
... | ... | @@ -65,10 +65,9 @@ CURRENT VERSION |
65 | 65 | |
66 | 66 | Date: 26/05/2016 |
67 | 67 | By: Paul Carensac |
68 | -Version: 0.5.3 | |
69 | -Minor changes (see issue) | |
70 | -(Attention: DB changed) | |
71 | -Issue (closed): https://projects.irap.omp.eu/issues/3708 | |
68 | +Version: 0.5.4 | |
69 | +Install script is now a way for update | |
70 | +Issue (closed): https://projects.irap.omp.eu/issues/3703 | |
72 | 71 | Major current version (0.5): https://projects.irap.omp.eu/versions/116 |
73 | 72 | |
74 | 73 | ROADMAP: https://projects.irap.omp.eu/projects/cpipeline/roadmap | ... | ... |
install/REQUIREMENTS.txt
install/REQUIREMENTS_SQLITE.txt
install/install_requirements.sh
... | ... | @@ -41,6 +41,7 @@ CREATE_SUPERUSER_SCRIPT="from django.contrib.auth.models import User; User.objec |
41 | 41 | INSTALLATION_FINISHED="-Installation finished" |
42 | 42 | BAD_SQL_CONFIGURATION="-Migration cannot be applied to the database : check your database configuration, or use sqlite instead" |
43 | 43 | TELL_SUPERUSER_CREATION="-Superuser created for django admin interface. Login: $DB_USER , password: $DB_PASSWORD" |
44 | +MAKE_MIGRATIONS="-Make migrations for DB models" | |
44 | 45 | FINAL_MESSAGE="-Please run './pyrosrun server' then go to localhost:$PORT/admin and log in with these id" |
45 | 46 | |
46 | 47 | # Getting python location |
... | ... | @@ -144,6 +145,14 @@ fi |
144 | 145 | echo $CREATE_SUPERUSER |
145 | 146 | echo $CREATE_SUPERUSER_SCRIPT | python ../src/manage.py shell |
146 | 147 | |
148 | +# Apply the migrations | |
149 | + | |
150 | +echo $MAKE_MIGRATIONS | |
151 | + | |
152 | +python ../src/manage.py makemigrations | |
153 | +python ../src/manage.py migrate | |
154 | + | |
155 | + | |
147 | 156 | echo $TELL_SUPERUSER_CREATION |
148 | 157 | read -n1 -r -p "Press any key to continue..." key |
149 | 158 | echo $FINAL_MESSAGE | ... | ... |