* TRUNCATE TABLE if driver is dm.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
TRUNCATE TABLE `zt_pivot`;
|
||||
TRUNCATE TABLE `zt_chart`;
|
||||
DELETE FROM `zt_screen` WHERE id IN (1,2,4,6,7,8);
|
||||
@@ -393,6 +393,8 @@ class installModel extends model
|
||||
$dbFile = $this->app->getAppRoot() . 'db' . DS . 'zentao.sql';
|
||||
$tables = explode(';', file_get_contents($dbFile));
|
||||
|
||||
if($this->config->db->driver == 'dm') $tables = array_merge($tables, explode(';', file_get_contents($this->app->getAppRoot() . 'db' . DS . 'dm.sql'));
|
||||
|
||||
foreach($tables as $table)
|
||||
{
|
||||
$table = trim($table);
|
||||
|
||||
Reference in New Issue
Block a user