test
This commit is contained in:
parent
16370db3aa
commit
0b14e0d5ce
6
sql.go
6
sql.go
@ -192,9 +192,9 @@ func initDB() {
|
|||||||
,castle_id SMALLINT UNSIGNED NOT NULL
|
,castle_id SMALLINT UNSIGNED NOT NULL
|
||||||
,gardian TINYINT NOT NULL
|
,gardian TINYINT NOT NULL
|
||||||
,result VARCHAR(8)
|
,result VARCHAR(8)
|
||||||
,gold SMALLINT NOT NULL
|
,gold INT NOT NULL
|
||||||
,stock SMALLINT NOT NULL
|
,stock INT NOT NULL
|
||||||
,points SMALLINT NOT NULL
|
,points INT NOT NULL
|
||||||
,FOREIGN KEY (obj_id) REFERENCES obj(id) ON DELETE CASCADE
|
,FOREIGN KEY (obj_id) REFERENCES obj(id) ON DELETE CASCADE
|
||||||
,FOREIGN KEY (castle_id) REFERENCES code_obj_castle(id) ON DELETE CASCADE
|
,FOREIGN KEY (castle_id) REFERENCES code_obj_castle(id) ON DELETE CASCADE
|
||||||
,UNIQUE KEY (obj_id, castle_id)
|
,UNIQUE KEY (obj_id, castle_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user