You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
471 B

  1. # -*- coding: utf-8 -*-
  2. # © 2016 Iván Todorovich <ivan.todorovich@gmail.com>
  3. # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
  4. def migrate(cr, version):
  5. if version is None:
  6. return
  7. # Rename old fields
  8. cr.execute("""UPDATE tile_tile SET primary_function = 'count'""")
  9. cr.execute("""UPDATE tile_tile SET secondary_function = field_function""")
  10. cr.execute("""UPDATE tile_tile SET secondary_field_id = field_id""")