This commit is contained in:
shoopea 2019-05-04 17:04:52 +08:00
parent 76eb120b27
commit 985353ba10

2
sql.go
View File

@ -91,7 +91,7 @@ func initDB() {
,name VARCHAR(80) NOT NULL
,chat_id BIGINT NOT NULL
,deposit_chat_id BIGINT NOT NULL
FOREIGN KEY (obj_id) REFERENCES obj(id) ON DELETE CASCADE
,FOREIGN KEY (obj_id) REFERENCES obj(id) ON DELETE CASCADE
) ENGINE = InnoDB CHARSET=utf8 COLLATE utf8_unicode_ci;`)
if err != nil {
log.Fatal(err)