aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMCMic <come@chilliet.eu>2017-06-15 10:47:06 +0200
committerGitHub <noreply@github.com>2017-06-15 10:47:06 +0200
commitd7b8bd7b23e3603c099bfff78be4a58926108e67 (patch)
tree7bffa9c0eb0cc8aa940eaeb73c6c80c82c12ecc1
parente438a0ab3eda6a63150ceaa983e1614836c07b70 (diff)
downloadmastodon_ynh-d7b8bd7b23e3603c099bfff78be4a58926108e67.tar.gz
mastodon_ynh-d7b8bd7b23e3603c099bfff78be4a58926108e67.tar.bz2
mastodon_ynh-d7b8bd7b23e3603c099bfff78be4a58926108e67.zip
Added needed line for 1.4.2 migration
-rw-r--r--scripts/upgrade2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/upgrade b/scripts/upgrade
index a741c4d..4308838 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -72,6 +72,8 @@ sudo su - $app <<COMMANDS
pushd ~/live
bin/bundle install
yarn install --pure-lockfile
+# For 1.4.1 -> 1.4.2 migration prepare_for_foreign_keys is needed
+RAILS_ENV=production bundle exec rails mastodon:maintenance:prepare_for_foreign_keys
RAILS_ENV=production bundle exec rails assets:clean
RAILS_ENV=production bundle exec rails assets:precompile
RAILS_ENV=production bundle exec rails db:migrate