1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-16 05:34:01 +02:00

[ticket/10411] Add new table for teampage

PHPBB3-10411
This commit is contained in:
Joas Schilling
2012-11-13 11:29:25 +01:00
parent ff7465e75f
commit df735f4603
9 changed files with 142 additions and 10 deletions

View File

@@ -1216,8 +1216,8 @@ CREATE TABLE phpbb_reports (
report_time number(11) DEFAULT '0' NOT NULL,
report_text clob DEFAULT '' ,
reported_post_text clob DEFAULT '' ,
reported_post_bitfield varchar2(255) DEFAULT '' ,
reported_post_uid varchar2(8) DEFAULT '' ,
reported_post_bitfield varchar2(255) DEFAULT '' ,
CONSTRAINT pk_phpbb_reports PRIMARY KEY (report_id)
)
/
@@ -1474,6 +1474,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'
*/