diff options
Diffstat (limited to 'phpBB/install/schemas/oracle_schema.sql')
| -rw-r--r-- | phpBB/install/schemas/oracle_schema.sql | 124 | 
1 files changed, 121 insertions, 3 deletions
diff --git a/phpBB/install/schemas/oracle_schema.sql b/phpBB/install/schemas/oracle_schema.sql index f20b96cd38..35f05e34cd 100644 --- a/phpBB/install/schemas/oracle_schema.sql +++ b/phpBB/install/schemas/oracle_schema.sql @@ -332,6 +332,17 @@ CREATE INDEX phpbb_config_is_dynamic ON phpbb_config (is_dynamic)  /  /* +	Table: 'phpbb_config_text' +*/ +CREATE TABLE phpbb_config_text ( +	config_name varchar2(255) DEFAULT '' , +	config_value clob DEFAULT '' , +	CONSTRAINT pk_phpbb_config_text PRIMARY KEY (config_name) +) +/ + + +/*  	Table: 'phpbb_confirm'  */  CREATE TABLE phpbb_confirm ( @@ -610,7 +621,7 @@ CREATE TABLE phpbb_groups (  	group_desc_uid varchar2(8) DEFAULT '' ,  	group_display number(1) DEFAULT '0' NOT NULL,  	group_avatar varchar2(255) DEFAULT '' , -	group_avatar_type number(2) DEFAULT '0' NOT NULL, +	group_avatar_type varchar2(255) DEFAULT '' ,  	group_avatar_width number(4) DEFAULT '0' NOT NULL,  	group_avatar_height number(4) DEFAULT '0' NOT NULL,  	group_rank number(8) DEFAULT '0' NOT NULL, @@ -620,7 +631,6 @@ CREATE TABLE phpbb_groups (  	group_message_limit number(8) DEFAULT '0' NOT NULL,  	group_max_recipients number(8) DEFAULT '0' NOT NULL,  	group_legend number(8) DEFAULT '0' NOT NULL, -	group_teampage number(8) DEFAULT '0' NOT NULL,  	CONSTRAINT pk_phpbb_groups PRIMARY KEY (group_id)  )  / @@ -799,6 +809,22 @@ CREATE INDEX phpbb_moderator_cache_forum_id ON phpbb_moderator_cache (forum_id)  /  /* +	Table: 'phpbb_migrations' +*/ +CREATE TABLE phpbb_migrations ( +	migration_name varchar2(255) DEFAULT '' , +	migration_depends_on clob DEFAULT '' , +	migration_schema_done number(1) DEFAULT '0' NOT NULL, +	migration_data_done number(1) DEFAULT '0' NOT NULL, +	migration_data_state clob DEFAULT '' , +	migration_start_time number(11) DEFAULT '0' NOT NULL, +	migration_end_time number(11) DEFAULT '0' NOT NULL, +	CONSTRAINT pk_phpbb_migrations PRIMARY KEY (migration_name) +) +/ + + +/*  	Table: 'phpbb_modules'  */  CREATE TABLE phpbb_modules ( @@ -841,6 +867,54 @@ END;  /* +	Table: 'phpbb_notification_types' +*/ +CREATE TABLE phpbb_notification_types ( +	notification_type varchar2(255) DEFAULT '' , +	notification_type_enabled number(1) DEFAULT '1' NOT NULL, +	CONSTRAINT pk_phpbb_notification_types PRIMARY KEY (notification_type, notification_type_enabled) +) +/ + + +/* +	Table: 'phpbb_notifications' +*/ +CREATE TABLE phpbb_notifications ( +	notification_id number(8) NOT NULL, +	item_type varchar2(255) DEFAULT '' , +	item_id number(8) DEFAULT '0' NOT NULL, +	item_parent_id number(8) DEFAULT '0' NOT NULL, +	user_id number(8) DEFAULT '0' NOT NULL, +	notification_read number(1) DEFAULT '0' NOT NULL, +	notification_time number(11) DEFAULT '1' NOT NULL, +	notification_data clob DEFAULT '' , +	CONSTRAINT pk_phpbb_notifications PRIMARY KEY (notification_id) +) +/ + +CREATE INDEX phpbb_notifications_item_ident ON phpbb_notifications (item_type, item_id) +/ +CREATE INDEX phpbb_notifications_user ON phpbb_notifications (user_id, notification_read) +/ + +CREATE SEQUENCE phpbb_notifications_seq +/ + +CREATE OR REPLACE TRIGGER t_phpbb_notifications +BEFORE INSERT ON phpbb_notifications +FOR EACH ROW WHEN ( +	new.notification_id IS NULL OR new.notification_id = 0 +) +BEGIN +	SELECT phpbb_notifications_seq.nextval +	INTO :new.notification_id +	FROM dual; +END; +/ + + +/*  	Table: 'phpbb_poll_options'  */  CREATE TABLE phpbb_poll_options ( @@ -1478,6 +1552,36 @@ END;  /* +	Table: 'phpbb_teampage' +*/ +CREATE TABLE phpbb_teampage ( +	teampage_id number(8) NOT NULL, +	group_id number(8) DEFAULT '0' NOT NULL, +	teampage_name varchar2(765) DEFAULT '' , +	teampage_position number(8) DEFAULT '0' NOT NULL, +	teampage_parent number(8) DEFAULT '0' NOT NULL, +	CONSTRAINT pk_phpbb_teampage PRIMARY KEY (teampage_id) +) +/ + + +CREATE SEQUENCE phpbb_teampage_seq +/ + +CREATE OR REPLACE TRIGGER t_phpbb_teampage +BEFORE INSERT ON phpbb_teampage +FOR EACH ROW WHEN ( +	new.teampage_id IS NULL OR new.teampage_id = 0 +) +BEGIN +	SELECT phpbb_teampage_seq.nextval +	INTO :new.teampage_id +	FROM dual; +END; +/ + + +/*  	Table: 'phpbb_topics'  */  CREATE TABLE phpbb_topics ( @@ -1595,6 +1699,19 @@ CREATE INDEX phpbb_topics_watch_notify_stat ON phpbb_topics_watch (notify_status  /  /* +	Table: 'phpbb_user_notifications' +*/ +CREATE TABLE phpbb_user_notifications ( +	item_type varchar2(255) DEFAULT '' , +	item_id number(8) DEFAULT '0' NOT NULL, +	user_id number(8) DEFAULT '0' NOT NULL, +	method varchar2(255) DEFAULT '' , +	notify number(1) DEFAULT '1' NOT NULL +) +/ + + +/*  	Table: 'phpbb_user_group'  */  CREATE TABLE phpbb_user_group ( @@ -1670,7 +1787,7 @@ CREATE TABLE phpbb_users (  	user_allow_massemail number(1) DEFAULT '1' NOT NULL,  	user_options number(11) DEFAULT '230271' NOT NULL,  	user_avatar varchar2(255) DEFAULT '' , -	user_avatar_type number(2) DEFAULT '0' NOT NULL, +	user_avatar_type varchar2(255) DEFAULT '' ,  	user_avatar_width number(4) DEFAULT '0' NOT NULL,  	user_avatar_height number(4) DEFAULT '0' NOT NULL,  	user_sig clob DEFAULT '' , @@ -1680,6 +1797,7 @@ CREATE TABLE phpbb_users (  	user_icq varchar2(15) DEFAULT '' ,  	user_aim varchar2(765) DEFAULT '' ,  	user_yim varchar2(765) DEFAULT '' , +	user_msnm varchar2(765) DEFAULT '' ,  	user_jabber varchar2(765) DEFAULT '' ,  	user_website varchar2(600) DEFAULT '' ,  	user_occ clob DEFAULT '' ,  | 
