Skip to content

Commit

Permalink
[FIX] migrate_translations_to_jsonb: Less verbose
Browse files Browse the repository at this point in the history
We can't log each translation query, as they are a lot (one per record
of each of the translatable columns for all the models), and there are
columns like ir_ui_view~arch_db that are very long.
  • Loading branch information
pedrobaeza committed Jul 14, 2024
1 parent 58c40b5 commit ae09ee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openupgradelib/openupgrade_160.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def migrate_translations_to_jsonb(env, fields_spec):
env.cr, field
)
for query in migrate_queries:
logged_query(env.cr, query)
env.cr.execute(query)
# Just leave it as it was if we renamed it
if rename_translation_table:
logged_query(env.cr, "ALTER TABLE _ir_translation RENAME TO ir_translation")
Expand Down

0 comments on commit ae09ee8

Please sign in to comment.