-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
qiang.xue
committed
Jun 14, 2011
1 parent
97654e2
commit e0a99f4
Showing
6 changed files
with
175 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* Database schema required by CDbAuthManager. | ||
* | ||
* @author Qiang Xue <qiang.xue@gmail.com> | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright © 2008 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
* @since 1.0 | ||
*/ | ||
|
||
drop table if exists AuthAssignment; | ||
drop table if exists AuthItemChild; | ||
drop table if exists AuthItem; | ||
|
||
create table AuthItem | ||
( | ||
name varchar(64) not null, | ||
type integer not null, | ||
description text, | ||
bizrule text, | ||
data text, | ||
primary key (name) | ||
); | ||
|
||
create table AuthItemChild | ||
( | ||
parent varchar(64) not null, | ||
child varchar(64) not null, | ||
primary key (parent,child), | ||
foreign key (parent) references AuthItem (name) on delete cascade on update cascade, | ||
foreign key (child) references AuthItem (name) on delete cascade on update cascade | ||
); | ||
|
||
create table AuthAssignment | ||
( | ||
itemname varchar(64) not null, | ||
userid varchar(64) not null, | ||
bizrule text, | ||
data text, | ||
primary key (itemname,userid), | ||
foreign key (itemname) references AuthItem (name) on delete cascade on update cascade | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* Database schema required by CDbAuthManager. | ||
* | ||
* @author Qiang Xue <qiang.xue@gmail.com> | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright © 2008 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
* @since 1.0 | ||
*/ | ||
|
||
drop table if exists AuthAssignment; | ||
drop table if exists AuthItemChild; | ||
drop table if exists AuthItem; | ||
|
||
create table AuthItem | ||
( | ||
name varchar(64) not null, | ||
type integer not null, | ||
description text, | ||
bizrule text, | ||
data text, | ||
primary key (name) | ||
); | ||
|
||
create table AuthItemChild | ||
( | ||
parent varchar(64) not null, | ||
child varchar(64) not null, | ||
primary key (parent,child), | ||
foreign key (parent) references AuthItem (name) on delete cascade on update cascade, | ||
foreign key (child) references AuthItem (name) on delete cascade on update cascade | ||
); | ||
|
||
create table AuthAssignment | ||
( | ||
itemname varchar(64) not null, | ||
userid varchar(64) not null, | ||
bizrule text, | ||
data text, | ||
primary key (itemname,userid), | ||
foreign key (itemname) references AuthItem (name) on delete cascade on update cascade | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* Database schema required by CDbAuthManager. | ||
* | ||
* @author Qiang Xue <qiang.xue@gmail.com> | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright © 2008 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
* @since 1.0 | ||
*/ | ||
|
||
drop table if exists AuthAssignment; | ||
drop table if exists AuthItemChild; | ||
drop table if exists AuthItem; | ||
|
||
create table AuthItem | ||
( | ||
name varchar(64) not null, | ||
type integer not null, | ||
description text, | ||
bizrule text, | ||
data text, | ||
primary key (name) | ||
); | ||
|
||
create table AuthItemChild | ||
( | ||
parent varchar(64) not null, | ||
child varchar(64) not null, | ||
primary key (parent,child), | ||
foreign key (parent) references AuthItem (name) on delete cascade on update cascade, | ||
foreign key (child) references AuthItem (name) on delete cascade on update cascade | ||
); | ||
|
||
create table AuthAssignment | ||
( | ||
itemname varchar(64) not null, | ||
userid varchar(64) not null, | ||
bizrule text, | ||
data text, | ||
primary key (itemname,userid), | ||
foreign key (itemname) references AuthItem (name) on delete cascade on update cascade | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* Database schema required by CDbAuthManager. | ||
* | ||
* @author Qiang Xue <qiang.xue@gmail.com> | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright © 2008 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
* @since 1.0 | ||
*/ | ||
|
||
drop table if exists AuthAssignment; | ||
drop table if exists AuthItemChild; | ||
drop table if exists AuthItem; | ||
|
||
create table AuthItem | ||
( | ||
name varchar(64) not null, | ||
type integer not null, | ||
description text, | ||
bizrule text, | ||
data text, | ||
primary key (name) | ||
); | ||
|
||
create table AuthItemChild | ||
( | ||
parent varchar(64) not null, | ||
child varchar(64) not null, | ||
primary key (parent,child), | ||
foreign key (parent) references AuthItem (name) on delete cascade on update cascade, | ||
foreign key (child) references AuthItem (name) on delete cascade on update cascade | ||
); | ||
|
||
create table AuthAssignment | ||
( | ||
itemname varchar(64) not null, | ||
userid varchar(64) not null, | ||
bizrule text, | ||
data text, | ||
primary key (itemname,userid), | ||
foreign key (itemname) references AuthItem (name) on delete cascade on update cascade | ||
); |