Files
Android11/external/autotest/frontend/migrations/006_host_label_invalid.py
2023-10-13 14:01:41 +00:00

9 lines
302 B
Python

def migrate_up(manager):
manager.execute('ALTER TABLE hosts ADD `invalid` bool NOT NULL')
manager.execute('ALTER TABLE labels ADD `invalid` bool NOT NULL')
def migrate_down(manager):
manager.execute('ALTER TABLE hosts DROP invalid')
manager.execute('ALTER TABLE labels DROP invalid')