X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=inc%2Fdb%2Fmysql.php;h=8fa49d52b68730a1a7edf980a18692e67cb06b6a;hp=e4c61d2c8e629a6fa2ccd6ddbbe639c07a1f2d1e;hb=a95b8e8626615eb84bd4760a0640d13dc1e67bab;hpb=7a8818d6a3dba51ca8dfc4142488a139618dfdb0 diff --git a/inc/db/mysql.php b/inc/db/mysql.php index e4c61d2..8fa49d5 100644 --- a/inc/db/mysql.php +++ b/inc/db/mysql.php @@ -28,9 +28,8 @@ class mysqlConnection implements anydbConnection { public function users_table_exists () { return $this->_tblexists ("users"); } - public function create_users_table ($error_if_exists) { + public function create_users_table () { $query = sprintf ("CREATE TABLE " . - ($error_if_exists ? " " : "IF NOT EXISTS ") . "%susers ( name VARCHAR(255) NOT NULL, pwd CHAR(32), PRIMARY KEY (name));", $this->dbprefix); @@ -40,9 +39,8 @@ class mysqlConnection implements anydbConnection { public function items_table_exists () { return $this->_tblexists ("items"); } - public function create_items_table ($error_if_exists) { + public function create_items_table () { $query = sprintf ("CREATE TABLE " . - ($error_if_exists ? " " : "IF NOT EXISTS ") . "%sitems ( id MEDIUMINT NOT NULL AUTO_INCREMENT, location POINT,