|
@@ -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) {
|