rabin 1 ano atrás
pai
commit
995c192f70
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/Dever/Sql.php

+ 1 - 1
src/Dever/Sql.php

@@ -23,7 +23,7 @@ class Sql
     }
     public static function create($config)
     {
-        $sql = 'DROP TABLE IF EXISTS `' . $config['table'] . '`;CREATE TABLE IF NOT EXISTS `' . $config['table'] . '`(';
+        $sql = 'CREATE TABLE `' . $config['table'] . '`(';
         $struct = array('id' => array('name' => 'ID', 'type' => 'int(11)'),'cdate' => array('name' => 'cdate', 'type' => 'int(11)'));
         $struct = array_merge($struct, $config['struct']);
         foreach ($struct as $k => $v) {