Commit 8c7edca8 authored by BERJON Matthieu's avatar BERJON Matthieu
Browse files

Update of tables deletion process



I now delete the django tables only if they exist. It avoids very nasty
error messages that can compromise the script running.
Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
parent a5d33e4a
......@@ -41,7 +41,7 @@ DeleteDjangoTables () {
for TABLE in $DJANGO_TABLES
do
mysql -u $USER $PASS -h $HOST $DB -e \
"SET FOREIGN_KEY_CHECKS = 0; DROP TABLE $TABLE; SET FOREIGN_KEY_CHECKS = 1;"
"SET FOREIGN_KEY_CHECKS = 0; DROP TABLE IF EXISTS $TABLE; SET FOREIGN_KEY_CHECKS = 1;"
done
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment