Skip to content

Commit

Permalink
DROP TABLE IF EXISTS pour plus de robustesse
Browse files Browse the repository at this point in the history
  • Loading branch information
kolok committed Jan 21, 2025
1 parent 8d24e52 commit f146b51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions programmes/migrations/0119_fill_lot_convention.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ class Migration(migrations.Migration):
[
migrations.RunSQL(
# copy de la table programmes_lot pour la sauvegarde
"DROP TABLE IF EXISTS programmes_lot_backup;"
"CREATE TABLE programmes_lot_backup AS "
"SELECT * FROM programmes_lot;",
"DROP TABLE programmes_lot_backup;",
Expand Down

0 comments on commit f146b51

Please sign in to comment.