[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:
parent
c0ff5c1cba
commit
a7a9001f5e
3
src/sql/migrations/down/0004.sql
Normal file
3
src/sql/migrations/down/0004.sql
Normal file
|
@ -0,0 +1,3 @@
|
|||
BEGIN;
|
||||
ALTER TABLE `server` MODIFY `ssl_state` bit(1) NULL;
|
||||
COMMIT;
|
5
src/sql/migrations/up/0005.sql
Normal file
5
src/sql/migrations/up/0005.sql
Normal 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;
|
Loading…
Reference in a new issue