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

- Fix "Data truncated" SQL error with server.ssl_state column type
stable
Hypolite Petovan 4 years ago
parent c0ff5c1cba
commit a7a9001f5e

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

@ -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;
Loading…
Cancel
Save