From 0b14e0d5ceb5a9ae40652118c9cca0527bf812d8 Mon Sep 17 00:00:00 2001 From: shoopea Date: Tue, 14 May 2019 10:39:37 +0800 Subject: [PATCH] test --- sql.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sql.go b/sql.go index 3691d35..3e4fc93 100644 --- a/sql.go +++ b/sql.go @@ -192,9 +192,9 @@ func initDB() { ,castle_id SMALLINT UNSIGNED NOT NULL ,gardian TINYINT NOT NULL ,result VARCHAR(8) - ,gold SMALLINT NOT NULL - ,stock SMALLINT NOT NULL - ,points SMALLINT NOT NULL + ,gold INT NOT NULL + ,stock INT NOT NULL + ,points INT NOT NULL ,FOREIGN KEY (obj_id) REFERENCES obj(id) ON DELETE CASCADE ,FOREIGN KEY (castle_id) REFERENCES code_obj_castle(id) ON DELETE CASCADE ,UNIQUE KEY (obj_id, castle_id)