]> dev.renevier.net Git - syp.git/blobdiff - inc/db/mysql.php
password is defined by user in wizard + localize wizard
[syp.git] / inc / db / mysql.php
index e4c61d2c8e629a6fa2ccd6ddbbe639c07a1f2d1e..8fa49d52b68730a1a7edf980a18692e67cb06b6a 100644 (file)
@@ -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,