mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: migrations should not fail when db is part migrated
When part migrated the translate overrides may have missing columns in that case just silently ignore overrides
This commit is contained in:
@@ -164,7 +164,7 @@ module I18n
|
||||
|
||||
by_site[locale].with_indifferent_access
|
||||
rescue ActiveRecord::StatementInvalid => e
|
||||
if PG::UndefinedTable === e.cause
|
||||
if PG::UndefinedTable === e.cause || PG::UndefinedColumn === e.cause
|
||||
{}
|
||||
else
|
||||
raise
|
||||
|
||||
Reference in New Issue
Block a user