Skip to content

Commit

Permalink
fix: Rescue DB migrate error (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentinchampenois authored May 29, 2024
1 parent 2c918ca commit f5a1bd5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/tasks/decidim_app.rake
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,16 @@ namespace :decidim_app do
# You can add your own customizations here
desc "Upgrade decidim-app"
task upgrade: :environment do
puts "Running db:migrate"
puts "Running upgrade db:migrate"
Rake::Task["db:migrate"].invoke
puts "Running decidim:repair:url_in_content"
Rake::Task["decidim:repair:url_in_content"].invoke
puts "Running decidim:repair:translations"
Rake::Task["decidim:repair:translations"].invoke
rescue StandardError => e
puts "Ignoring error: #{e.message}"
puts "Running decidim:db:migrate"
Rake::Task["decidim:db:migrate"].invoke
end

desc "usage: bundle exec rails k8s:dump_db"
Expand Down

0 comments on commit f5a1bd5

Please sign in to comment.