PM-401 Unify-Database

Unify Database and Restore changes
This commit is contained in:
norahmollo
2014-10-09 10:36:34 -04:00
parent 5b7a1a3572
commit e17c28adf8
3 changed files with 81 additions and 52 deletions

View File

@@ -523,9 +523,11 @@ class DataBaseMaintenance
fwrite( $file, $data );
}
}
foreach ($tablesBpmn as $table) {
fwrite( $file, $sqlTablesBpmn[$table] );
if (count ($sqlTablesBpmn) > 0) {
foreach ($tablesBpmn as $table) {
fwrite( $file, $sqlTablesBpmn[$table] );
}
}
fclose( $file );
@@ -622,7 +624,7 @@ class DataBaseMaintenance
* @return string $tableSchema
*/
function getSchemaFromTable ($tablename)
{
{
//$tableSchema = "/* Structure for table `$tablename` */\n";
//$tableSchema .= "DROP TABLE IF EXISTS `$tablename`;\n\n";
$tableSchema = "";