diff --git a/src/sql/migrations/down/0004.sql b/src/sql/migrations/down/0004.sql new file mode 100644 index 0000000..91156ba --- /dev/null +++ b/src/sql/migrations/down/0004.sql @@ -0,0 +1,3 @@ +BEGIN; +ALTER TABLE `server` MODIFY `ssl_state` bit(1) NULL; +COMMIT; \ No newline at end of file diff --git a/src/sql/migrations/up/0005.sql b/src/sql/migrations/up/0005.sql new file mode 100644 index 0000000..b72e286 --- /dev/null +++ b/src/sql/migrations/up/0005.sql @@ -0,0 +1,5 @@ +BEGIN; +UPDATE `server` SET `ssl_state` = 0 WHERE `ssl_state` IS NULL; + +ALTER TABLE `server` MODIFY `ssl_state` tinyint(1) DEFAULT 0 NOT NULL; +COMMIT;