[Database v0005] Change server.ssl_state column type to tinyint

- Fix "Data truncated" SQL error with server.ssl_state column type
This commit is contained in:
Hypolite Petovan 2019-03-04 22:11:38 -05:00
parent c0ff5c1cba
commit a7a9001f5e
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,3 @@
BEGIN;
ALTER TABLE `server` MODIFY `ssl_state` bit(1) NULL;
COMMIT;

View file

@ -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;