Home | History | Annotate | Download | only in migrations
      1 UP_SQL = """
      2 ALTER TABLE tko_test_labels
      3 ADD CONSTRAINT tko_test_labels_unique
      4 UNIQUE INDEX (name);
      5 
      6 INSERT IGNORE INTO tko_test_labels (name, description)
      7 VALUES ('invalidated', '');
      8 """
      9 
     10 DOWN_SQL = """
     11 ALTER TABLE tko_test_labels
     12 DROP INDEX tko_test_labels_unique;
     13 """
     14