huangcm
2025-02-24 69ed55dec4b2116a19e4cca4393cbc014fce5fb2
1
2
3
4
5
6
7
8
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')