mirror of
https://github.com/discourse/discourse.git
synced 2025-04-17 18:30:15 +08:00
FIX: remap shouldn't fail silently when an error occurs
This commit is contained in:
parent
c9feadf9ec
commit
91b73e0c2d
@ -264,6 +264,8 @@ WHERE table_schema='public' and (data_type like 'char%' or data_type like 'text%
|
||||
puts "#{result.cmd_tuples} rows affected!"
|
||||
rescue => ex
|
||||
puts "Error: #{ex}"
|
||||
puts "The remap has only been partially applied due to the error above. Please re-run the script again."
|
||||
exit(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user