From 49cdd2d2edcd990d0b6b3fb24ee583f238621dd9 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 8 Sep 2017 20:15:28 +0200 Subject: Update upgrade scripts --- UPGRADE.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'UPGRADE.md') diff --git a/UPGRADE.md b/UPGRADE.md index 26821d77c..34d1560db 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -1,7 +1,7 @@ v1 to v2.0 ---------- -Before upgrading to v2.0, update to the last v1 version. Then apply all +Before upgrading to v2.0, update to the last v1 version. Then apply all databases migrations: ``` @@ -9,6 +9,14 @@ cd ./manage.py migrate ``` +Just after upgrade of the code and of the lib, some manual db migrations (user, +database name and password can be found in your local settings): + +``` +cd +psql -h 127.0.0.1 -U myishtardbuser myishtardb -f scripts/migrate_from_v1_to_v2.sql +``` + Upgrade to ishtar sources and fake initial migrations. ``` @@ -27,11 +35,3 @@ cd ./manage.py migrate --fake archaeological_warehouse 0002_auto_20170414_2123 ./manage.py migrate ``` - -And finaly some manual db migrations (user, database name and password can be found in your local settings): - -``` -cd -psql -U myishtardbuser myishtardb -f scripts/migrate_from_v1_to_v2.sql -``` - -- cgit v1.2.3