From 5bfcd2a2a3f141ff62ca16680efc46526c0903c7 Mon Sep 17 00:00:00 2001 From: shoopea Date: Wed, 8 May 2019 18:36:29 +0800 Subject: [PATCH] typo --- sql.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql.go b/sql.go index 9e4b618..43341df 100644 --- a/sql.go +++ b/sql.go @@ -64,8 +64,8 @@ func initDB() { ,obj_type_id SMALLINT UNSIGNED NOT NULL ,obj_sub_type_id SMALLINT UNSIGNED NOT NULL ,PRIMARY KEY (id) - ,FOREIGN KEY (obj_type_id) REFERENCSE code_obj_type(id) ON DELETE CASCADE - ,FOREIGN KEY (obj_sub_type_id) REFERENCSE code_obj_sub_type(id) ON DELETE CASCADE + ,FOREIGN KEY (obj_type_id) REFERENCES code_obj_type(id) ON DELETE CASCADE + ,FOREIGN KEY (obj_sub_type_id) REFERENCES code_obj_sub_type(id) ON DELETE CASCADE ) ENGINE = InnoDB AUTO_INCREMENT = 0 CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci;`) failOnError(err, "initDB : create table obj")