rake mastodon:maintenance:prepare_for_foreign_keys
needs to run.
$ git checkout master
$ git fetch upstream
$ git rev-parse upstream/master
75c6513c678148e9a6adfcda57cfd5c8a16c804a
$ git rebase upstream/master
$ git checkout zunda-ninja-master-on-heroku
$ git merge master
$ git push # auto deployes to zundan-mastodon-experiment
I could not confirm:
$ export HEROKU_APP=zundan-mastodon-experiment
$ heroku run bash
~ $ rake mastodon:maintenance:prepare_for_foreign_keys # no output
~ $ rake db:migrate # no output
I'll have to destroy this afterwards to aovid additional $9/month cost. Well, actually I had an error on the first try so the backup actually holds data after migration :P
$ export HEROKU_APP=zundan-mastodon
$ heroku addons:create heroku-postgresql:hobby-basic --as PG_BACKUP_170607
$ heroku pg:copy DATABASE_URL PG_BACKUP_170607
Promoted on dashboard from zundan-mastodon-experiment
to
zundan-mastodon-streaming
where release command (db:migration
) doesn't run.
$ export HEROKU_APP=zundan-mastodon-streaming
$ heroku run rake mastodon:maintenance:prepare_for_foreign_keys
$ export HEROKU_APP=zundan-mastodon
$ heroku pipelines:promote -a zundan-mastodon-experiment --to zundan-mastodon
:
Migrating to AddForeignKeysForAccounts (20170604144747)
:
== 20170604144747 AddForeignKeysForAccounts: migrated (0.4700s) ===============
:
Migrating to ChangeTagSearchIndexToBtree (20170606113804)
:
== 20170606113804 ChangeTagSearchIndexToBtree: migrated (0.0548s) =============
COOL