From 7f553731bd44ae5a839b0e6a81ae9769d98cbea8 Mon Sep 17 00:00:00 2001 From: nate Date: Fri, 9 Feb 2007 17:39:54 +0000 Subject: [PATCH] Updating ACL SQL table definitions git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4489 3807eeeb-6ff5-0310-8944-8be069107fe0 --- app/config/sql/db_acl.sql | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/app/config/sql/db_acl.sql b/app/config/sql/db_acl.sql index e8ab099c9..60928472e 100644 --- a/app/config/sql/db_acl.sql +++ b/app/config/sql/db_acl.sql @@ -10,12 +10,13 @@ CREATE TABLE acos ( id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT, - model VARCHAR(255) NOT NULL DEFAULT '', - object_id INTEGER(10) NULL DEFAULT NULL, - alias VARCHAR(255) NOT NULL DEFAULT '', - lft INTEGER(10) NULL DEFAULT NULL, - rght INTEGER(10) NULL DEFAULT NULL, - PRIMARY KEY(id) + parent_id INTEGER(10) DEFAULT NULL, + model VARCHAR(255) DEFAULT '', + foreign_key INTEGER(10) UNSIGNED DEFAULT NULL, + alias VARCHAR(255) DEFAULT '', + lft INTEGER(10) DEFAULT NULL, + rght INTEGER(10) DEFAULT NULL, + PRIMARY KEY (id) ); CREATE TABLE aros_acos ( @@ -31,10 +32,11 @@ CREATE TABLE aros_acos ( CREATE TABLE aros ( id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT, - model VARCHAR(255) NOT NULL DEFAULT '', - foreign_key INTEGER(10) UNSIGNED NULL DEFAULT NULL, - alias VARCHAR(255) NOT NULL DEFAULT '', - lft INTEGER(10) NULL DEFAULT NULL, - rght INTEGER(10) NULL DEFAULT NULL, - PRIMARY KEY(id) -); \ No newline at end of file + parent_id INTEGER(10) DEFAULT NULL, + model VARCHAR(255) DEFAULT '', + foreign_key INTEGER(10) UNSIGNED DEFAULT NULL, + alias VARCHAR(255) DEFAULT '', + lft INTEGER(10) DEFAULT NULL, + rght INTEGER(10) DEFAULT NULL, + PRIMARY KEY (id) +);