diff --git a/f_install/templates/RootDB.orig.php b/f_install/templates/RootDB.orig.php index c59ce260..f41fbd15 100644 --- a/f_install/templates/RootDB.orig.php +++ b/f_install/templates/RootDB.orig.php @@ -29,6 +29,8 @@ class RootDB if (self::$uDB === null) { self::$uDB = new \MeekroDB(self::$host, self::$user, self::$password, self::$dbName, self::$port, self::$encoding); self::$uDB->connect_options[MYSQLI_OPT_INT_AND_FLOAT_NATIVE] = true; + + self::$uDB->error_handler= function(){}; self::$uDB->throw_exception_on_error = true; self::$uDB->throw_exception_on_nonsql_error = true; } diff --git a/hwe/d_setting/DB.orig.php b/hwe/d_setting/DB.orig.php index 71e7fdb3..6ca56027 100644 --- a/hwe/d_setting/DB.orig.php +++ b/hwe/d_setting/DB.orig.php @@ -27,6 +27,8 @@ class DB{ if(self::$uDB === null){ self::$uDB = new \MeekroDB(self::$host,self::$user,self::$password,self::$dbName,self::$port,self::$encoding); self::$uDB->connect_options[MYSQLI_OPT_INT_AND_FLOAT_NATIVE] = true; + + self::$uDB->error_handler= function(){}; self::$uDB->throw_exception_on_error = true; self::$uDB->throw_exception_on_nonsql_error = true; } diff --git a/hwe/sql/schema.sql b/hwe/sql/schema.sql index 45cadccf..ae9a5185 100644 --- a/hwe/sql/schema.sql +++ b/hwe/sql/schema.sql @@ -280,8 +280,8 @@ create table nation ( ########################################################################### ## trade 100 이 표준 시세 create table city ( - city int(6) not null auto_increment, - name char(64) not null, + `city` INT(6) NOT NULL AUTO_INCREMENT, + `name` CHAR(64) NOT NULL, level int(1) default 0, upgrading int(1) default 0, nation int(6) default 0, @@ -312,7 +312,7 @@ create table city ( state int(2) default 0, region int(2) default 0, term int(1) default 0, - conflict varchar(500) default '{}' + conflict varchar(500) default '{}', PRIMARY KEY (city), KEY (nation)