mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding fix for #2752, acl shell creates invalid sql
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5401 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
7e14187bc7
commit
a0a0a4a718
1 changed files with 4 additions and 4 deletions
|
@ -318,9 +318,9 @@ class AclShell extends Shell {
|
|||
$sql = " CREATE TABLE ".$db->fullTableName('acos')." (
|
||||
".$db->name('id')." ".$db->column($db->columns['primary_key']).",
|
||||
".$db->name('parent_id')." ".$db->column($db->columns['integer'])." default NULL,
|
||||
".$db->name('model')." ".$db->column($db->columns['string'])." default '' NOT NULL,
|
||||
".$db->name('model')." ".$db->column($db->columns['string'])." default '',
|
||||
".$db->name('foreign_key')." ".$db->column($db->columns['integer'])." default NULL,
|
||||
".$db->name('alias')." ".$db->column($db->columns['string'])." default '' NOT NULL,
|
||||
".$db->name('alias')." ".$db->column($db->columns['string'])." default '',
|
||||
".$db->name('lft')." ".$db->column($db->columns['integer'])." default NULL,
|
||||
".$db->name('rght')." ".$db->column($db->columns['integer'])." default NULL,
|
||||
PRIMARY KEY (".$db->name('id').")
|
||||
|
@ -333,9 +333,9 @@ class AclShell extends Shell {
|
|||
$sql2 = "CREATE TABLE ".$db->fullTableName('aros')." (
|
||||
".$db->name('id')." ".$db->column($db->columns['primary_key']).",
|
||||
".$db->name('parent_id')." ".$db->column($db->columns['integer'])." default NULL,
|
||||
".$db->name('model')." ".$db->column($db->columns['string'])." default '' NOT NULL,
|
||||
".$db->name('model')." ".$db->column($db->columns['string'])." default '',
|
||||
".$db->name('foreign_key')." ".$db->column($db->columns['integer'])." default NULL,
|
||||
".$db->name('alias')." ".$db->column($db->columns['string'])." default '' NOT NULL,
|
||||
".$db->name('alias')." ".$db->column($db->columns['string'])." default '',
|
||||
".$db->name('lft')." ".$db->column($db->columns['integer'])." default NULL,
|
||||
".$db->name('rght')." ".$db->column($db->columns['integer'])." default NULL,
|
||||
PRIMARY KEY (".$db->name('id').")
|
||||
|
|
Loading…
Reference in a new issue