fix column
This commit is contained in:
parent
47161d7167
commit
e63c05ca0b
5
sql.go
5
sql.go
@ -58,8 +58,9 @@ func initDB() {
|
||||
failOnError(err, "initDB : create table code_obj_sub_type")
|
||||
|
||||
_, err = db.Exec(`CREATE TABLE obj (
|
||||
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT
|
||||
,obj_type_id SMALLINT UNSIGNED NOT NULL
|
||||
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT
|
||||
,obj_type_id SMALLINT UNSIGNED NOT NULL
|
||||
,obj_sub_type_id SMALLINT UNSIGNED NOT NULL
|
||||
,PRIMARY KEY (id)
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 0 CHARSET=utf8 COLLATE utf8_unicode_ci;`)
|
||||
failOnError(err, "initDB : create table obj")
|
||||
|
Loading…
Reference in New Issue
Block a user