runbot/runbot_merge/migrations/15.0.1.13/pre-migration.py

5 lines
223 B
Python
Raw Permalink Normal View History

def migrate(cr, version):
cr.execute("ALTER TABLE runbot_merge_stagings "
"ADD COLUMN staging_end timestamp without time zone")
cr.execute("UPDATE runbot_merge_stagings SET staging_end = write_date")