From c40e33d180a647810944a94ffd7a2d33e317ffd0 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Mon, 15 Jan 2018 14:14:51 -0600 Subject: [PATCH] add db upgrade docs for later --- docs/db_upgrade_tasks.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docs/db_upgrade_tasks.md diff --git a/docs/db_upgrade_tasks.md b/docs/db_upgrade_tasks.md new file mode 100644 index 00000000..d8880273 --- /dev/null +++ b/docs/db_upgrade_tasks.md @@ -0,0 +1,15 @@ +heroku addons:create heroku-postgresql:premium-0 --app production-1 +heroku pg:wait --app production-1 + +heroku maintenance:on --app production-1 +heroku pg:copy DATABASE_URL CREATED_DATABASE_URL --app production-1 + +heroku pg:promote CREATED_DATABASE_URL --app production-1 + +heroku maintenance:off --app production-1 + + + +1. 1-2 +2. 5 +3. deprovision new db