changing user_id field to foreign_key in ACL schema

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3692 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2006-10-17 06:38:39 +00:00
parent 51f95aada4
commit 06b4676172

View file

@ -1,30 +1,30 @@
CREATE TABLE `acos` ( CREATE TABLE acos (
`id` int(11) NOT NULL auto_increment, id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`model` varchar(255) NOT NULL default '', model VARCHAR(255) NOT NULL DEFAULT '',
`object_id` int(11) default NULL, object_id INTEGER(10) NULL DEFAULT NULL,
`alias` varchar(255) NOT NULL default '', alias VARCHAR(255) NOT NULL DEFAULT '',
`lft` int(11) default NULL, lft INTEGER(10) NULL DEFAULT NULL,
`rght` int(11) default NULL, rght INTEGER(10) NULL DEFAULT NULL,
PRIMARY KEY (`id`) PRIMARY KEY(id)
); );
CREATE TABLE `aros` ( CREATE TABLE acos_aros (
`id` int(11) NOT NULL auto_increment, id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`model` varchar(255) NOT NULL default '', aro_id INTEGER(10) UNSIGNED NOT NULL,
`user_id` int(11) default NULL, aco_id INTEGER(10) UNSIGNED NOT NULL,
`alias` varchar(255) NOT NULL default '', _create TINYINT(1) NOT NULL DEFAULT 0,
`lft` int(11) default NULL, _read TINYINT(1) NOT NULL DEFAULT 0,
`rght` int(11) default NULL, _update TINYINT(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`) _delete TINYINT(1) NOT NULL DEFAULT 0,
PRIMARY KEY(id)
); );
CREATE TABLE `aros_acos` ( CREATE TABLE aros (
`id` int(11) NOT NULL auto_increment, id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`aro_id` int(11) default NULL, model VARCHAR(255) NOT NULL DEFAULT '',
`aco_id` int(11) default NULL, foreign_key INTEGER(10) UNSIGNED NULL DEFAULT NULL,
`_create` int(1) NOT NULL default '0', alias VARCHAR(255) NOT NULL DEFAULT '',
`_read` int(1) NOT NULL default '0', lft INTEGER(10) NULL DEFAULT NULL,
`_update` int(1) NOT NULL default '0', rght INTEGER(10) NULL DEFAULT NULL,
`_delete` int(11) NOT NULL default '0', PRIMARY KEY(id)
PRIMARY KEY (`id`) );
);