aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/schemas/firebird_schema.sql
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/install/schemas/firebird_schema.sql')
-rw-r--r--phpBB/install/schemas/firebird_schema.sql122
1 files changed, 27 insertions, 95 deletions
diff --git a/phpBB/install/schemas/firebird_schema.sql b/phpBB/install/schemas/firebird_schema.sql
index 2e3ab48a97..e48b36c6b8 100644
--- a/phpBB/install/schemas/firebird_schema.sql
+++ b/phpBB/install/schemas/firebird_schema.sql
@@ -1148,101 +1148,7 @@ CREATE TABLE phpbb_styles_imageset (
imageset_id INTEGER NOT NULL,
imageset_name VARCHAR(255) CHARACTER SET UTF8 DEFAULT '' NOT NULL COLLATE UNICODE,
imageset_copyright VARCHAR(255) CHARACTER SET UTF8 DEFAULT '' NOT NULL COLLATE UNICODE,
- imageset_path VARCHAR(100) CHARACTER SET NONE DEFAULT '' NOT NULL,
- site_logo VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- upload_bar VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- poll_left VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- poll_center VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- poll_right VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_friend VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_foe VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- forum_link VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- forum_read VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- forum_read_locked VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- forum_read_subforum VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- forum_unread VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- forum_unread_locked VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- forum_unread_subforum VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- topic_moved VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- topic_read VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- topic_read_mine VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- topic_read_hot VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- topic_read_hot_mine VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- topic_read_locked VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- topic_read_locked_mine VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- topic_unread VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- topic_unread_mine VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- topic_unread_hot VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- topic_unread_hot_mine VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- topic_unread_locked VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- topic_unread_locked_mine VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- sticky_read VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- sticky_read_mine VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- sticky_read_locked VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- sticky_read_locked_mine VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- sticky_unread VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- sticky_unread_mine VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- sticky_unread_locked VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- sticky_unread_locked_mine VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- announce_read VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- announce_read_mine VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- announce_read_locked VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- announce_read_locked_mine VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- announce_unread VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- announce_unread_mine VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- announce_unread_locked VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- announce_unread_locked_mine VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- global_read VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- global_read_mine VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- global_read_locked VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- global_read_locked_mine VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- global_unread VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- global_unread_mine VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- global_unread_locked VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- global_unread_locked_mine VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- pm_read VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- pm_unread VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_contact_aim VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_contact_email VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_contact_icq VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_contact_jabber VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_contact_msnm VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_contact_pm VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_contact_yahoo VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_contact_www VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_post_delete VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_post_edit VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_post_info VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_post_quote VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_post_report VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_post_target VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_post_target_unread VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_topic_attach VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_topic_latest VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_topic_newest VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_topic_reported VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_topic_unapproved VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_user_online VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_user_offline VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_user_profile VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_user_search VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- icon_user_warn VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- button_pm_forward VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- button_pm_new VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- button_pm_reply VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- button_topic_locked VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- button_topic_new VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- button_topic_reply VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- user_icon1 VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- user_icon2 VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- user_icon3 VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- user_icon4 VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- user_icon5 VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- user_icon6 VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- user_icon7 VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- user_icon8 VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- user_icon9 VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
- user_icon10 VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL
+ imageset_path VARCHAR(100) CHARACTER SET NONE DEFAULT '' NOT NULL
);;
ALTER TABLE phpbb_styles_imageset ADD PRIMARY KEY (imageset_id);;
@@ -1260,6 +1166,32 @@ BEGIN
END;;
+# Table: 'phpbb_styles_imageset_data'
+CREATE TABLE phpbb_styles_imageset_data (
+ image_id INTEGER NOT NULL,
+ image_name VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
+ image_filename VARCHAR(200) CHARACTER SET NONE DEFAULT '' NOT NULL,
+ image_lang VARCHAR(30) CHARACTER SET NONE DEFAULT '' NOT NULL,
+ image_height INTEGER DEFAULT 0 NOT NULL,
+ image_width INTEGER DEFAULT 0 NOT NULL,
+ imageset_id INTEGER DEFAULT 0 NOT NULL
+);;
+
+ALTER TABLE phpbb_styles_imageset_data ADD PRIMARY KEY (image_id);;
+
+CREATE INDEX phpbb_styles_imageset_data_imgset_id ON phpbb_styles_imageset_data(imageset_id);;
+
+CREATE GENERATOR phpbb_styles_imageset_data_gen;;
+SET GENERATOR phpbb_styles_imageset_data_gen TO 0;;
+
+CREATE TRIGGER t_phpbb_styles_imageset_data FOR phpbb_styles_imageset_data
+BEFORE INSERT
+AS
+BEGIN
+ NEW.image_id = GEN_ID(phpbb_styles_imageset_data_gen, 1);
+END;;
+
+
# Table: 'phpbb_topics'
CREATE TABLE phpbb_topics (
topic_id INTEGER NOT NULL,