test
This commit is contained in:
parent
1fb56a1787
commit
563791e7f0
2
sql.go
2
sql.go
@ -80,7 +80,7 @@ func initDB() {
|
|||||||
|
|
||||||
_, err = db.Exec(`CREATE TABLE obj_castle (
|
_, err = db.Exec(`CREATE TABLE obj_castle (
|
||||||
obj_id BIGINT UNSIGNED NOT NULL
|
obj_id BIGINT UNSIGNED NOT NULL
|
||||||
,user_id VARCHAR(32) NOT NULL
|
,logo VARCHAR(32) NOT NULL
|
||||||
,name VARCHAR(80) NOT NULL
|
,name VARCHAR(80) NOT NULL
|
||||||
,FOREIGN KEY (obj_id) REFERENCES obj(id) ON DELETE CASCADE
|
,FOREIGN KEY (obj_id) REFERENCES obj(id) ON DELETE CASCADE
|
||||||
) ENGINE = InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci;`)
|
) ENGINE = InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci;`)
|
||||||
|
Loading…
Reference in New Issue
Block a user