From 0d331298babd871427b09ce0a61f1a4f6779fd67 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 11 May 2019 15:45:20 +0800 Subject: [PATCH] test --- sql.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sql.go b/sql.go index 1c43ddb..90abe42 100644 --- a/sql.go +++ b/sql.go @@ -154,6 +154,7 @@ func initDB() { ,status VARCHAR(32) ,end DATETIME NOT NULL ,FOREIGN KEY (obj_id) REFERENCES obj(id) ON DELETE CASCADE + ,KEY (lot_id) ) ENGINE = InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci;`) failOnError(err, "initDB : create table obj_msg_auction_announce") @@ -161,6 +162,7 @@ func initDB() { obj_id BIGINT UNSIGNED NOT NULL ,lot_id BIGINT UNSIGNED NOT NULL ,FOREIGN KEY (obj_id) REFERENCES obj(id) ON DELETE CASCADE + ,KEY (lot_id) ) ENGINE = InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci;`) failOnError(err, "initDB : create table obj_msg_auction_upd_req")