summaryrefslogtreecommitdiff
path: root/frontend/migrations/006_host_label_invalid.py
blob: 9f6a6f18f6a1aa51092e078b6a742bea673306c2 (plain)
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')