Browse Source

Merge pull request #743 from Eficent/12.0-fix-base_location-migration-scripts

[12.0][FIX] base_location: migration scripts
pull/744/head
Pedro M. Baeza 6 years ago
committed by GitHub
parent
commit
219b43622b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      base_location/migrations/12.0.1.0.0/post-migration.py

1
base_location/migrations/12.0.1.0.0/post-migration.py

@ -9,6 +9,7 @@ from openupgradelib import openupgrade
def migrate(env, version): def migrate(env, version):
column_name = openupgrade.get_legacy_name('better_zip_id') column_name = openupgrade.get_legacy_name('better_zip_id')
openupgrade.logged_query( openupgrade.logged_query(
env.cr,
"ALTER TABLE res_city_zip ADD %s INTEGER", (AsIs(column_name), ), "ALTER TABLE res_city_zip ADD %s INTEGER", (AsIs(column_name), ),
) )
openupgrade.logged_query( openupgrade.logged_query(

Loading…
Cancel
Save