This commit is contained in:
shoopea 2019-05-03 15:30:02 +08:00
parent ddfbdc4cdf
commit 8894b7b645

3
sql.go
View File

@ -70,8 +70,7 @@ func initDB() {
,direction ENUM('incoming', 'outgoing')
,date TIMESTAMP NOT NULL
,text VARCHAR(4096) NOT NULL
-- ,FOREIGN KEY (user_id) REFERENCES user(id) ON DELETE CASCADE
) ENGINE = InnoDB CHARSET=utf8 COLLATE utf8_unicode_ci;`)
) ENGINE = InnoDB CHARSET=utf8 COLLATE utf8_unicode_ci;`) // ,FOREIGN KEY (user_id) REFERENCES user(id) ON DELETE CASCADE
if err != nil {
log.Fatal(err)
}