1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 18:54:08 +02:00

say hello to role descriptions, role ordering and tooltips on role selects

git-svn-id: file:///svn/phpbb/trunk@5791 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2006-04-17 22:36:43 +00:00
parent a0f8e1323a
commit 8d456a0fd7
20 changed files with 369 additions and 33 deletions

View File

@@ -81,13 +81,16 @@ END;;
CREATE TABLE phpbb_auth_roles (
role_id INTEGER NOT NULL,
role_name VARCHAR(255) NOT NULL,
role_description BLOB SUB_TYPE TEXT,
role_type VARCHAR(10) NOT NULL,
role_order INTEGER DEFAULT 0 NOT NULL,
role_group_ids VARCHAR(255) NOT NULL
);;
ALTER TABLE phpbb_auth_roles ADD PRIMARY KEY (role_id);;
CREATE INDEX phpbb_auth_roles_role_type ON phpbb_auth_roles(role_type);;
CREATE INDEX phpbb_auth_roles_role_order ON phpbb_auth_roles(role_order);;
CREATE GENERATOR phpbb_auth_roles_gen;;
SET GENERATOR phpbb_auth_roles_gen TO 0;;

View File

@@ -128,9 +128,11 @@ GO
CREATE TABLE [phpbb_auth_roles] (
[role_id] [int] IDENTITY (1, 1) NOT NULL ,
[role_name] [varchar] (255) NOT NULL ,
[role_description] [text] ,
[role_type] [varchar] (10) NOT NULL ,
[role_order] [int] NOT NULL ,
[role_group_ids] [varchar] (255) NOT NULL
) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [phpbb_auth_roles] WITH NOCHECK ADD
@@ -141,12 +143,16 @@ ALTER TABLE [phpbb_auth_roles] WITH NOCHECK ADD
GO
ALTER TABLE [phpbb_auth_roles] WITH NOCHECK ADD
CONSTRAINT [DF_auth_p_role_role_order] DEFAULT(0) FOR [role_order],
CONSTRAINT [DF_auth_p_role_group_ids] DEFAULT ('') FOR [role_group_ids]
GO
CREATE INDEX [role_type] ON [phpbb_auth_roles]([role_type]) ON [PRIMARY]
GO
CREATE INDEX [role_order] ON [phpbb_auth_roles]([role_order]) ON [PRIMARY]
GO
/*
Table: phpbb_auth_roles_data

View File

@@ -55,10 +55,13 @@ CREATE TABLE phpbb_auth_options (
CREATE TABLE phpbb_auth_roles (
role_id mediumint(8) UNSIGNED NOT NULL auto_increment,
role_name varchar(255) DEFAULT '' NOT NULL,
role_description text,
role_type varchar(10) DEFAULT '' NOT NULL,
role_order smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
role_group_ids varchar(255) DEFAULT '' NOT NULL,
PRIMARY KEY (role_id),
KEY role_type (role_type)
KEY role_type (role_type),
KEY role_order (role_order)
);
# Table: 'phpbb_auth_roles_data'

View File

@@ -146,7 +146,9 @@ CREATE INDEX phpbb_auth_options_auth_option on phpbb_auth_options (auth_option)
CREATE TABLE phpbb_auth_roles (
role_id number(8) NOT NULL,
role_name varchar2(255) DEFAULT '',
role_description clob,
role_type varchar2(10) DEFAULT '',
role_order number(4) DEFAULT '0' NOT NULL,
role_group_ids varchar2(255) DEFAULT '' NOT NULL,
CONSTRAINT pk_phpbb_auth_roles PRIMARY KEY (role_id)
)
@@ -170,6 +172,8 @@ END;
CREATE INDEX phpbb_auth_roles_role_type on phpbb_auth_roles (role_type)
/
CREATE INDEX phpbb_auth_roles_role_order on phpbb_auth_roles (role_order)
/
/*
Table: phpbb_auth_roles_data

View File

@@ -81,12 +81,15 @@ CREATE SEQUENCE phpbb_auth_roles_seq;
CREATE TABLE phpbb_auth_roles (
role_id INT4 DEFAULT nextval('phpbb_auth_roles_seq'),
role_name varchar(255) DEFAULT '' NOT NULL,
role_description TEXT,
role_type varchar(10) DEFAULT '' NOT NULL,
role_order INT4 DEFAULT '0' NOT NULL,
role_group_ids varchar(255) DEFAULT '' NOT NULL,
PRIMARY KEY (role_id)
);
CREATE INDEX phpbb_auth_roles_role_type ON phpbb_auth_roles (role_type);
CREATE INDEX phpbb_auth_roles_role_order ON phpbb_auth_roles (role_order);
SELECT SETVAL('phpbb_auth_roles_seq',(select case when max(role_id)>0 then max(role_id)+1 else 1 end from phpbb_auth_roles));

View File

@@ -61,11 +61,14 @@ CREATE INDEX phpbb_auth_options_auth_option on phpbb_auth_options (auth_option);
CREATE TABLE phpbb_auth_roles (
role_id INTEGER PRIMARY KEY NOT NULL,
role_name varchar(50) NOT NULL DEFAULT '',
role_description text(65535),
role_type varchar(10) NOT NULL DEFAULT '',
role_order mediumint(8) NOT NULL DEFAULT '0',
role_group_ids varchar(255) NOT NULL DEFAULT ''
);
CREATE INDEX phpbb_auth_roles_role_type on phpbb_auth_roles (role_type);
CREATE INDEX phpbb_auth_roles_role_order on phpbb_auth_roles (role_order);
# Table: phpbb_auth_roles_data