mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
60c6d3be02
commit
8a9b882f0c
1 changed files with 9 additions and 3 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue