summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tko/migrations/023_update_tests_invalid.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tko/migrations/023_update_tests_invalid.py b/tko/migrations/023_update_tests_invalid.py
new file mode 100644
index 00000000..386a43db
--- /dev/null
+++ b/tko/migrations/023_update_tests_invalid.py
@@ -0,0 +1,6 @@
+def migrate_up(manager):
+ manager.execute("ALTER TABLE tests MODIFY invalid TINYINT(1) DEFAULT 0")
+
+
+def migrate_down(manager):
+ manager.execute("ALTER TABLE tests MODIFY invalid TINYINT(1) DEFAULT NULL")