sql
This commit is contained in:
parent
ea9d42e547
commit
27e7ef70f7
4
sql.go
4
sql.go
@ -58,7 +58,7 @@ func initDB() {
|
|||||||
name VARCHAR(80) NOT NULL,
|
name VARCHAR(80) NOT NULL,
|
||||||
guild_id SMALLINT(5),
|
guild_id SMALLINT(5),
|
||||||
PRIMARY KEY (id),
|
PRIMARY KEY (id),
|
||||||
) ENGINE = InnoDB ROW_FORMAT = DEFAULT CHARSET=utf8mb4_unicode_ci;`)
|
) ENGINE = InnoDB CHARSET=utf8 COLLATE utf8_unicode_ci;`)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
@ -69,7 +69,7 @@ func initDB() {
|
|||||||
direction ENUM('incoming', 'outgoing'),
|
direction ENUM('incoming', 'outgoing'),
|
||||||
text VARCHAR(4096) NOT NULL,
|
text VARCHAR(4096) NOT NULL,
|
||||||
FOREIGN KEY (user_id) REFERENCES user(id) ON DELETE CASCADE
|
FOREIGN KEY (user_id) REFERENCES user(id) ON DELETE CASCADE
|
||||||
) ENGINE = InnoDB ROW_FORMAT = DEFAULT CHARSET=utf8mb4_unicode_ci;`)
|
) ENGINE = InnoDB CHARSET=utf8 COLLATE utf8_unicode_ci;`)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user