diff --git a/sql.go b/sql.go index f528225..e92f4c1 100644 --- a/sql.go +++ b/sql.go @@ -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) }