diff options
Diffstat (limited to 'phpBB/install/schemas/oracle_schema.sql')
| -rw-r--r-- | phpBB/install/schemas/oracle_schema.sql | 212 | 
1 files changed, 49 insertions, 163 deletions
diff --git a/phpBB/install/schemas/oracle_schema.sql b/phpBB/install/schemas/oracle_schema.sql index 9b516b4a56..04155fe28b 100644 --- a/phpBB/install/schemas/oracle_schema.sql +++ b/phpBB/install/schemas/oracle_schema.sql @@ -1,8 +1,10 @@  /* - - $Id$ - -*/ + * DO NOT EDIT THIS FILE, IT IS GENERATED + * + * To change the contents of this file, edit + * phpBB/develop/create_schema_files.php and + * run it. + */  /*    This first section is optional, however its probably the best method @@ -408,6 +410,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 ( @@ -744,6 +758,29 @@ END;  /* +	Table: 'phpbb_login_attempts' +*/ +CREATE TABLE phpbb_login_attempts ( +	attempt_ip varchar2(40) DEFAULT '' , +	attempt_browser varchar2(150) DEFAULT '' , +	attempt_forwarded_for varchar2(255) DEFAULT '' , +	attempt_time number(11) DEFAULT '0' NOT NULL, +	user_id number(8) DEFAULT '0' NOT NULL, +	username varchar2(765) DEFAULT '0' NOT NULL, +	username_clean varchar2(255) DEFAULT '0' NOT NULL +) +/ + +CREATE INDEX phpbb_login_attempts_att_ip ON phpbb_login_attempts (attempt_ip, attempt_time) +/ +CREATE INDEX phpbb_login_attempts_att_for ON phpbb_login_attempts (attempt_forwarded_for, attempt_time) +/ +CREATE INDEX phpbb_login_attempts_att_time ON phpbb_login_attempts (attempt_time) +/ +CREATE INDEX phpbb_login_attempts_user_id ON phpbb_login_attempts (user_id) +/ + +/*  	Table: 'phpbb_moderator_cache'  */  CREATE TABLE phpbb_moderator_cache ( @@ -1063,7 +1100,9 @@ CREATE TABLE phpbb_profile_fields (  	field_default_value varchar2(765) DEFAULT '' ,  	field_validation varchar2(60) DEFAULT '' ,  	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, @@ -1176,6 +1215,7 @@ 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 '' ,  	CONSTRAINT pk_phpbb_reports PRIMARY KEY (report_id)  )  / @@ -1406,20 +1446,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  / @@ -1438,154 +1473,6 @@ END;  /* -	Table: 'phpbb_styles_template' -*/ -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 INDEX phpbb_styles_imageset_data_i_d ON phpbb_styles_imageset_data (imageset_id) -/ - -CREATE SEQUENCE phpbb_styles_imageset_data_seq -/ - -CREATE OR REPLACE TRIGGER t_phpbb_styles_imageset_data -BEFORE INSERT ON phpbb_styles_imageset_data -FOR EACH ROW WHEN ( -	new.image_id IS NULL OR new.image_id = 0 -) -BEGIN -	SELECT phpbb_styles_imageset_data_seq.nextval -	INTO :new.image_id -	FROM dual; -END; -/ - - -/*  	Table: 'phpbb_topics'  */  CREATE TABLE phpbb_topics ( @@ -1752,8 +1639,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,  | 
