test
This commit is contained in:
parent
1ee52af4c8
commit
0d331298ba
2
sql.go
2
sql.go
@ -154,6 +154,7 @@ func initDB() {
|
|||||||
,status VARCHAR(32)
|
,status VARCHAR(32)
|
||||||
,end DATETIME NOT NULL
|
,end DATETIME NOT NULL
|
||||||
,FOREIGN KEY (obj_id) REFERENCES obj(id) ON DELETE CASCADE
|
,FOREIGN KEY (obj_id) REFERENCES obj(id) ON DELETE CASCADE
|
||||||
|
,KEY (lot_id)
|
||||||
) ENGINE = InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci;`)
|
) ENGINE = InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci;`)
|
||||||
failOnError(err, "initDB : create table obj_msg_auction_announce")
|
failOnError(err, "initDB : create table obj_msg_auction_announce")
|
||||||
|
|
||||||
@ -161,6 +162,7 @@ func initDB() {
|
|||||||
obj_id BIGINT UNSIGNED NOT NULL
|
obj_id BIGINT UNSIGNED NOT NULL
|
||||||
,lot_id BIGINT UNSIGNED NOT NULL
|
,lot_id BIGINT UNSIGNED NOT NULL
|
||||||
,FOREIGN KEY (obj_id) REFERENCES obj(id) ON DELETE CASCADE
|
,FOREIGN KEY (obj_id) REFERENCES obj(id) ON DELETE CASCADE
|
||||||
|
,KEY (lot_id)
|
||||||
) ENGINE = InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci;`)
|
) ENGINE = InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci;`)
|
||||||
failOnError(err, "initDB : create table obj_msg_auction_upd_req")
|
failOnError(err, "initDB : create table obj_msg_auction_upd_req")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user