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