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.

16 lines
370 B

  1. # coding: utf-8
  2. def migrate(cr, version):
  3. # Record information from old shift stage
  4. cr.execute("ALTER TABLE beesdoo_shift_shift ADD old_code varchar")
  5. cr.execute(
  6. """
  7. UPDATE beesdoo_shift_shift
  8. SET old_code = (
  9. SELECT code
  10. FROM beesdoo_shift_stage
  11. WHERE id = stage_id
  12. )
  13. """
  14. )