BUG 000 PM tables class generator & table build using phing

This commit is contained in:
Erik Amaru Ortiz
2011-09-08 15:00:41 -04:00
parent 1fef88d24e
commit 4968521a07
69 changed files with 579 additions and 1738 deletions

View File

@@ -385,7 +385,7 @@ class PmTable
$line = substr($line, 0, strrpos($line, ";"));
// just execute the drop and create table for target table nad not for others
if (stripos('CREATE TABLE') !== false || stripos('DROP TABLE') !== false) {
if (stripos($line, 'CREATE TABLE') !== false || stripos($line, 'DROP TABLE') !== false) {
$isCreateForCurrentTable = preg_match('/CREATE\sTABLE\s[\'\"\`]{1}' . $this->tableName . '[\'\"\`]{1}/i', $line, $match);
if ($isCreateForCurrentTable) {
$queryStack['create'] = $line;