Making same fixes as [3336]

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3337 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2006-08-01 02:47:40 +00:00
parent 60c6d3be02
commit 8a9b882f0c

View file

@ -355,7 +355,9 @@ class AclCLI {
".$db->name('rght')." ".$db->column($db->columns['integer'])." default NULL,
PRIMARY KEY (".$db->name('id').")
);";
$db->query($sql);
if ($db->query($sql) === false) {
die("Error: " . $db->lastError() . "\n\n");
}
fwrite($this->stdout, "Creating access request objects table (aros)...\n");
$sql2 = "CREATE TABLE ".$db->fullTableName('aros')." (
@ -366,7 +368,9 @@ class AclCLI {
".$db->name('rght')." ".$db->column($db->columns['integer'])." default NULL,
PRIMARY KEY (".$db->name('id').")
);";
$db->query($sql2);
if ($db->query($sql) === false) {
die("Error: " . $db->lastError() . "\n\n");
}
fwrite($this->stdout, "Creating relationships table (aros_acos)...\n");
$sql3 = "CREATE TABLE ".$db->fullTableName('aros_acos')." (
@ -379,7 +383,9 @@ class AclCLI {
".$db->name('_delete')." ".$db->column($db->columns['integer'])." NOT NULL default '0',
PRIMARY KEY (".$db->name('id').")
);";
$db->query($sql3);
if ($db->query($sql3) === false) {
die("Error: " . $db->lastError() . "\n\n");
}
fwrite($this->stdout, "\nDone.\n");
}