1def migrate_up(manger): 2 manger.execute('CREATE INDEX hosts_labels_host_id ON hosts_labels ' 3 '(host_id)') 4 5 6def migrate_down(manger): 7 manger.execute('DROP INDEX hosts_labels_host_id ON hosts_labels') 8