Skip to content

Commit

Permalink
Dev Moved template permissions to the general permissions table, too
Browse files Browse the repository at this point in the history
Dev Unfortunately this change needs a reinstall if you are a developer.
  • Loading branch information
c-schmitz committed Apr 1, 2013
1 parent de54f6d commit 85cc679
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
9 changes: 5 additions & 4 deletions installer/sql/create-mssql.sql
Expand Up @@ -207,16 +207,17 @@ CREATE TABLE [prefix_participants] (
-- Table structure for table permissions
--
CREATE TABLE [prefix_permissions] (
[sid] int NOT NULL,
[id] int NOT NULL IDENTITY (1,1) PRIMARY KEY,
[entity] varchar(50) NOT NULL,
[entity_id] varchar(100) NOT NULL,
[uid] int NOT NULL,
[permission] varchar(20) NOT NULL,
[permission] varchar(100) NOT NULL,
[create_p] int NOT NULL default '0',
[read_p] int NOT NULL default '0',
[update_p] int NOT NULL default '0',
[delete_p] int NOT NULL default '0',
[import_p] int NOT NULL default '0',
[export_p] int NOT NULL default '0',
PRIMARY KEY ([sid], [uid],[permission])
[export_p] int NOT NULL default '0'
);


Expand Down
9 changes: 6 additions & 3 deletions installer/sql/create-mysql.sql
Expand Up @@ -209,16 +209,19 @@ CREATE TABLE `prefix_participants` (
-- Table structure for table permissions
--
CREATE TABLE `prefix_permissions` (
`sid` int(11) NOT NULL,
`id` int(11) NOT NULL auto_increment,
`entity` varchar(50) NOT NULL,
`entity_id` varchar(100) NOT NULL,
`uid` int(11) NOT NULL,
`permission` varchar(20) NOT NULL,
`permission` varchar(100) NOT NULL,
`create_p` int(11) NOT NULL default '0',
`read_p` int(11) NOT NULL default '0',
`update_p` int(11) NOT NULL default '0',
`delete_p` int(11) NOT NULL default '0',
`import_p` int(11) NOT NULL default '0',
`export_p` int(11) NOT NULL default '0',
PRIMARY KEY (sid, uid, permission)
PRIMARY KEY (id),
UNIQUE KEY `idxPermissions` (`entity_id`,`entity`,`permission`,`uid`)
) ENGINE=MYISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci;


Expand Down
8 changes: 5 additions & 3 deletions installer/sql/create-pgsql.sql
Expand Up @@ -214,16 +214,18 @@ CREATE TABLE prefix_participants (
-- Table structure for table permissions
--
CREATE TABLE prefix_permissions (
sid integer NOT NULL,
id serial NOT NULL,
entity varying(50) NOT NULL,
entity_id varying(100) NOT NULL,
uid integer NOT NULL,
permission character varying(20) NOT NULL,
permission character varying(100) NOT NULL,
create_p integer DEFAULT 0 NOT NULL,
read_p integer DEFAULT 0 NOT NULL,
update_p integer DEFAULT 0 NOT NULL,
delete_p integer DEFAULT 0 NOT NULL,
import_p integer DEFAULT 0 NOT NULL,
export_p integer DEFAULT 0 NOT NULL,
CONSTRAINT prefix_permissions_pkey PRIMARY KEY (sid,uid,permission)
CONSTRAINT prefix_permissions_pkey PRIMARY KEY (id)
);


Expand Down

0 comments on commit 85cc679

Please sign in to comment.