mirror of
https://github.com/discourse/discourse.git
synced 2025-03-30 12:05:36 +08:00
DEV: initial migration can fail
db:migrate can issue translations due to module loading localizing end user messages This allows db:migrate to work even when db is blank
This commit is contained in:
parent
fb200e3055
commit
445d305154
@ -162,6 +162,12 @@ module I18n
|
||||
end
|
||||
|
||||
by_site[locale].with_indifferent_access
|
||||
rescue ActiveRecord::StatementInvalid => e
|
||||
if PG::UndefinedTable === e.cause
|
||||
{}
|
||||
else
|
||||
raise
|
||||
end
|
||||
end
|
||||
|
||||
def client_overrides_json(locale)
|
||||
|
Loading…
x
Reference in New Issue
Block a user