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
604 B
13 lines
604 B
4 months ago
|
def migrate_up(manager):
|
||
|
manager.execute('ALTER TABLE autotests DROP params')
|
||
|
manager.execute('ALTER TABLE jobs DROP kernel_url, DROP status, '
|
||
|
'DROP submitted_on')
|
||
|
manager.execute('ALTER TABLE host_queue_entries DROP created_on')
|
||
|
|
||
|
def migrate_down(manager):
|
||
|
manager.execute('ALTER TABLE autotests ADD params VARCHAR(255)')
|
||
|
manager.execute('ALTER TABLE jobs ADD kernel_url VARCHAR(255), '
|
||
|
'ADD status VARCHAR(255), ADD submitted_on datetime')
|
||
|
manager.execute('ALTER TABLE host_queue_entries ADD created_on '
|
||
|
'datetime')
|