]> git.parisson.com Git - telemeta.git/commitdiff
Add upgrade from 1.6 to 1.7 scripts
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 19 Oct 2017 15:33:35 +0000 (17:33 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 19 Oct 2017 15:33:35 +0000 (17:33 +0200)
app/scripts/upgrade_from_1.6_to_1.7.sh [new file with mode: 0755]
scripts/upgrade.sh [new file with mode: 0755]

diff --git a/app/scripts/upgrade_from_1.6_to_1.7.sh b/app/scripts/upgrade_from_1.6_to_1.7.sh
new file mode 100755 (executable)
index 0000000..30d73ee
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+python manage.py migrate contenttypes --fake-initial
+python manage.py migrate --fake-initial
+python manage.py migrate thumbnail --fake-initial
+python manage.py migrate --fake telemeta 0006
diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh
new file mode 100755 (executable)
index 0000000..1167382
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+docker-compose run app /srv/scripts/upgrade_from_1.6_to_1.7.sh