File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ CREATE TABLE IF NOT EXISTS account(
33 username VARCHAR (250 ) NOT NULL ,
44 password BINARY(80 ) NOT NULL ,
55 owner TINYINT (1 ) NOT NULL DEFAULT ' 0' ,
6- config JSON NOT NULL DEFAULT ' {}' ,
6+ config JSON NOT NULL DEFAULT ( ' {}' ) ,
77 PRIMARY KEY (id),
88 UNIQUE KEY account_username_UNIQUE (username))
99 CHARACTER SET utf8mb4;
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ var mysqlMigrations = []migration{
4848 }
4949 defer tx .Rollback ()
5050
51- _ , err = tx .Exec (`ALTER TABLE account ADD COLUMN config JSON NOT NULL DEFAULT '{}'` )
51+ _ , err = tx .Exec (`ALTER TABLE account ADD COLUMN config JSON NOT NULL DEFAULT ( '{}') ` )
5252 if err != nil && strings .Contains (err .Error (), `Duplicate column name` ) {
5353 tx .Rollback ()
5454 } else if err != nil {
You can’t perform that action at this time.
0 commit comments