diff options
Diffstat (limited to 'phpBB/install/schemas/oracle_schema.sql')
| -rw-r--r-- | phpBB/install/schemas/oracle_schema.sql | 277 | 
1 files changed, 131 insertions, 146 deletions
diff --git a/phpBB/install/schemas/oracle_schema.sql b/phpBB/install/schemas/oracle_schema.sql index af7b2b60ec..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 ( @@ -410,6 +421,18 @@ END;  /* +	Table: 'phpbb_ext' +*/ +CREATE TABLE phpbb_ext ( +	ext_name varchar2(255) DEFAULT '' , +	ext_active number(1) DEFAULT '0' NOT NULL, +	ext_state clob DEFAULT '' , +	CONSTRAINT u_phpbb_ext_name UNIQUE (ext_name) +) +/ + + +/*  	Table: 'phpbb_extensions'  */  CREATE TABLE phpbb_extensions ( @@ -598,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, @@ -607,7 +630,7 @@ CREATE TABLE phpbb_groups (  	group_receive_pm number(1) DEFAULT '0' NOT NULL,  	group_message_limit number(8) DEFAULT '0' NOT NULL,  	group_max_recipients number(8) DEFAULT '0' NOT NULL, -	group_legend number(1) DEFAULT '1' NOT NULL, +	group_legend number(8) DEFAULT '0' NOT NULL,  	CONSTRAINT pk_phpbb_groups PRIMARY KEY (group_id)  )  / @@ -717,6 +740,8 @@ CREATE TABLE phpbb_log (  CREATE INDEX phpbb_log_log_type ON phpbb_log (log_type)  / +CREATE INDEX phpbb_log_log_time ON phpbb_log (log_time) +/  CREATE INDEX phpbb_log_forum_id ON phpbb_log (forum_id)  /  CREATE INDEX phpbb_log_topic_id ON phpbb_log (topic_id) @@ -784,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 ( @@ -826,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 ( @@ -1087,6 +1176,7 @@ CREATE TABLE phpbb_profile_fields (  	field_required number(1) DEFAULT '0' NOT NULL,  	field_show_novalue number(1) DEFAULT '0' NOT NULL,  	field_show_on_reg number(1) DEFAULT '0' NOT NULL, +	field_show_on_pm number(1) DEFAULT '0' NOT NULL,  	field_show_on_vt number(1) DEFAULT '0' NOT NULL,  	field_show_profile number(1) DEFAULT '0' NOT NULL,  	field_hide number(1) DEFAULT '0' NOT NULL, @@ -1199,6 +1289,12 @@ CREATE TABLE phpbb_reports (  	report_closed number(1) DEFAULT '0' NOT NULL,  	report_time number(11) DEFAULT '0' NOT NULL,  	report_text clob DEFAULT '' , +	reported_post_text clob DEFAULT '' , +	reported_post_uid varchar2(8) DEFAULT '' , +	reported_post_bitfield varchar2(255) DEFAULT '' , +	reported_post_enable_magic_url number(1) DEFAULT '1' NOT NULL, +	reported_post_enable_smilies number(1) DEFAULT '1' NOT NULL, +	reported_post_enable_bbcode number(1) DEFAULT '1' NOT NULL,  	CONSTRAINT pk_phpbb_reports PRIMARY KEY (report_id)  )  / @@ -1429,20 +1525,15 @@ CREATE TABLE phpbb_styles (  	style_name varchar2(765) DEFAULT '' ,  	style_copyright varchar2(765) DEFAULT '' ,  	style_active number(1) DEFAULT '1' NOT NULL, -	template_id number(8) DEFAULT '0' NOT NULL, -	theme_id number(8) DEFAULT '0' NOT NULL, -	imageset_id number(8) DEFAULT '0' NOT NULL, +	style_path varchar2(100) DEFAULT '' , +	bbcode_bitfield varchar2(255) DEFAULT 'kNg=' NOT NULL, +	style_parent_id number(4) DEFAULT '0' NOT NULL, +	style_parent_tree clob DEFAULT '' ,  	CONSTRAINT pk_phpbb_styles PRIMARY KEY (style_id),  	CONSTRAINT u_phpbb_style_name UNIQUE (style_name)  )  / -CREATE INDEX phpbb_styles_template_id ON phpbb_styles (template_id) -/ -CREATE INDEX phpbb_styles_theme_id ON phpbb_styles (theme_id) -/ -CREATE INDEX phpbb_styles_imageset_id ON phpbb_styles (imageset_id) -/  CREATE SEQUENCE phpbb_styles_seq  / @@ -1461,148 +1552,30 @@ END;  /* -	Table: 'phpbb_styles_template' +	Table: 'phpbb_teampage'  */ -CREATE TABLE phpbb_styles_template ( -	template_id number(8) NOT NULL, -	template_name varchar2(765) DEFAULT '' , -	template_copyright varchar2(765) DEFAULT '' , -	template_path varchar2(100) DEFAULT '' , -	bbcode_bitfield varchar2(255) DEFAULT 'kNg=' NOT NULL, -	template_storedb number(1) DEFAULT '0' NOT NULL, -	template_inherits_id number(4) DEFAULT '0' NOT NULL, -	template_inherit_path varchar2(255) DEFAULT '' , -	CONSTRAINT pk_phpbb_styles_template PRIMARY KEY (template_id), -	CONSTRAINT u_phpbb_tmplte_nm UNIQUE (template_name) -) -/ - - -CREATE SEQUENCE phpbb_styles_template_seq -/ - -CREATE OR REPLACE TRIGGER t_phpbb_styles_template -BEFORE INSERT ON phpbb_styles_template -FOR EACH ROW WHEN ( -	new.template_id IS NULL OR new.template_id = 0 -) -BEGIN -	SELECT phpbb_styles_template_seq.nextval -	INTO :new.template_id -	FROM dual; -END; -/ - - -/* -	Table: 'phpbb_styles_template_data' -*/ -CREATE TABLE phpbb_styles_template_data ( -	template_id number(8) DEFAULT '0' NOT NULL, -	template_filename varchar2(100) DEFAULT '' , -	template_included clob DEFAULT '' , -	template_mtime number(11) DEFAULT '0' NOT NULL, -	template_data clob DEFAULT ''  -) -/ - -CREATE INDEX phpbb_styles_template_data_tid ON phpbb_styles_template_data (template_id) -/ -CREATE INDEX phpbb_styles_template_data_tfn ON phpbb_styles_template_data (template_filename) -/ - -/* -	Table: 'phpbb_styles_theme' -*/ -CREATE TABLE phpbb_styles_theme ( -	theme_id number(8) NOT NULL, -	theme_name varchar2(765) DEFAULT '' , -	theme_copyright varchar2(765) DEFAULT '' , -	theme_path varchar2(100) DEFAULT '' , -	theme_storedb number(1) DEFAULT '0' NOT NULL, -	theme_mtime number(11) DEFAULT '0' NOT NULL, -	theme_data clob DEFAULT '' , -	CONSTRAINT pk_phpbb_styles_theme PRIMARY KEY (theme_id), -	CONSTRAINT u_phpbb_theme_name UNIQUE (theme_name) -) -/ - - -CREATE SEQUENCE phpbb_styles_theme_seq -/ - -CREATE OR REPLACE TRIGGER t_phpbb_styles_theme -BEFORE INSERT ON phpbb_styles_theme -FOR EACH ROW WHEN ( -	new.theme_id IS NULL OR new.theme_id = 0 -) -BEGIN -	SELECT phpbb_styles_theme_seq.nextval -	INTO :new.theme_id -	FROM dual; -END; -/ - - -/* -	Table: 'phpbb_styles_imageset' -*/ -CREATE TABLE phpbb_styles_imageset ( -	imageset_id number(8) NOT NULL, -	imageset_name varchar2(765) DEFAULT '' , -	imageset_copyright varchar2(765) DEFAULT '' , -	imageset_path varchar2(100) DEFAULT '' , -	CONSTRAINT pk_phpbb_styles_imageset PRIMARY KEY (imageset_id), -	CONSTRAINT u_phpbb_imgset_nm UNIQUE (imageset_name) -) -/ - - -CREATE SEQUENCE phpbb_styles_imageset_seq -/ - -CREATE OR REPLACE TRIGGER t_phpbb_styles_imageset -BEFORE INSERT ON phpbb_styles_imageset -FOR EACH ROW WHEN ( -	new.imageset_id IS NULL OR new.imageset_id = 0 -) -BEGIN -	SELECT phpbb_styles_imageset_seq.nextval -	INTO :new.imageset_id -	FROM dual; -END; -/ - - -/* -	Table: 'phpbb_styles_imageset_data' -*/ -CREATE TABLE phpbb_styles_imageset_data ( -	image_id number(8) NOT NULL, -	image_name varchar2(200) DEFAULT '' , -	image_filename varchar2(200) DEFAULT '' , -	image_lang varchar2(30) DEFAULT '' , -	image_height number(4) DEFAULT '0' NOT NULL, -	image_width number(4) DEFAULT '0' NOT NULL, -	imageset_id number(8) DEFAULT '0' NOT NULL, -	CONSTRAINT pk_phpbb_styles_imageset_data PRIMARY KEY (image_id) +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 INDEX phpbb_styles_imageset_data_i_d ON phpbb_styles_imageset_data (imageset_id) -/ -CREATE SEQUENCE phpbb_styles_imageset_data_seq +CREATE SEQUENCE phpbb_teampage_seq  / -CREATE OR REPLACE TRIGGER t_phpbb_styles_imageset_data -BEFORE INSERT ON phpbb_styles_imageset_data +CREATE OR REPLACE TRIGGER t_phpbb_teampage +BEFORE INSERT ON phpbb_teampage  FOR EACH ROW WHEN ( -	new.image_id IS NULL OR new.image_id = 0 +	new.teampage_id IS NULL OR new.teampage_id = 0  )  BEGIN -	SELECT phpbb_styles_imageset_data_seq.nextval -	INTO :new.image_id +	SELECT phpbb_teampage_seq.nextval +	INTO :new.teampage_id  	FROM dual;  END;  / @@ -1726,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 ( @@ -1775,8 +1761,7 @@ CREATE TABLE phpbb_users (  	user_inactive_time number(11) DEFAULT '0' NOT NULL,  	user_posts number(8) DEFAULT '0' NOT NULL,  	user_lang varchar2(30) DEFAULT '' , -	user_timezone number(5, 2) DEFAULT '0' NOT NULL, -	user_dst number(1) DEFAULT '0' NOT NULL, +	user_timezone varchar2(100) DEFAULT 'UTC' NOT NULL,  	user_dateformat varchar2(90) DEFAULT 'd M Y H:i' NOT NULL,  	user_style number(8) DEFAULT '0' NOT NULL,  	user_rank number(8) DEFAULT '0' NOT NULL, @@ -1802,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 '' ,  | 
