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,
|
||||
guild_id SMALLINT(5),
|
||||
PRIMARY KEY (id),
|
||||
) ENGINE = InnoDB ROW_FORMAT = DEFAULT CHARSET=utf8mb4_unicode_ci;`)
|
||||
) ENGINE = InnoDB CHARSET=utf8 COLLATE utf8_unicode_ci;`)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
@ -69,7 +69,7 @@ func initDB() {
|
||||
direction ENUM('incoming', 'outgoing'),
|
||||
text VARCHAR(4096) NOT NULL,
|
||||
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 {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user