aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/schemas
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/install/schemas')
-rw-r--r--phpBB/install/schemas/mysql_40_schema.sql84
-rw-r--r--phpBB/install/schemas/mysql_41_schema.sql84
-rw-r--r--phpBB/install/schemas/oracle_schema.sql84
-rw-r--r--phpBB/install/schemas/postgres_schema.sql78
4 files changed, 165 insertions, 165 deletions
diff --git a/phpBB/install/schemas/mysql_40_schema.sql b/phpBB/install/schemas/mysql_40_schema.sql
index 16c26fac4a..93a90e3a7c 100644
--- a/phpBB/install/schemas/mysql_40_schema.sql
+++ b/phpBB/install/schemas/mysql_40_schema.sql
@@ -7,7 +7,7 @@
CREATE TABLE phpbb_attachments (
attach_id mediumint(8) UNSIGNED NOT NULL auto_increment,
post_msg_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ topic_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
in_message tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
poster_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
is_orphan tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
@@ -79,7 +79,7 @@ CREATE TABLE phpbb_acl_roles_data (
# Table: 'phpbb_acl_users'
CREATE TABLE phpbb_acl_users (
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
auth_option_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
auth_role_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
@@ -128,8 +128,8 @@ CREATE TABLE phpbb_bbcodes (
# Table: 'phpbb_bookmarks'
CREATE TABLE phpbb_bookmarks (
- topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ topic_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
PRIMARY KEY (topic_id, user_id)
);
@@ -139,7 +139,7 @@ CREATE TABLE phpbb_bots (
bot_id mediumint(8) UNSIGNED NOT NULL auto_increment,
bot_active tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
bot_name blob NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
bot_agent varbinary(255) DEFAULT '' NOT NULL,
bot_ip varbinary(255) DEFAULT '' NOT NULL,
PRIMARY KEY (bot_id),
@@ -189,8 +189,8 @@ CREATE TABLE phpbb_disallow (
# Table: 'phpbb_drafts'
CREATE TABLE phpbb_drafts (
draft_id mediumint(8) UNSIGNED NOT NULL auto_increment,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
+ topic_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
save_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
draft_subject blob NOT NULL,
@@ -289,7 +289,7 @@ CREATE TABLE phpbb_forums (
# Table: 'phpbb_forums_access'
CREATE TABLE phpbb_forums_access (
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
session_id binary(32) DEFAULT '' NOT NULL,
PRIMARY KEY (forum_id, user_id, session_id)
);
@@ -297,7 +297,7 @@ CREATE TABLE phpbb_forums_access (
# Table: 'phpbb_forums_track'
CREATE TABLE phpbb_forums_track (
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
mark_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
PRIMARY KEY (user_id, forum_id)
@@ -307,7 +307,7 @@ CREATE TABLE phpbb_forums_track (
# Table: 'phpbb_forums_watch'
CREATE TABLE phpbb_forums_watch (
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
notify_status tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
KEY forum_id (forum_id),
KEY user_id (user_id),
@@ -373,9 +373,9 @@ CREATE TABLE phpbb_lang (
CREATE TABLE phpbb_log (
log_id mediumint(8) UNSIGNED NOT NULL auto_increment,
log_type tinyint(4) DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ topic_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
reportee_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
log_ip varbinary(40) DEFAULT '' NOT NULL,
log_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
@@ -397,7 +397,7 @@ CREATE TABLE phpbb_login_attempts (
attempt_browser varbinary(150) DEFAULT '' NOT NULL,
attempt_forwarded_for varbinary(255) DEFAULT '' NOT NULL,
attempt_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
username blob NOT NULL,
username_clean blob NOT NULL,
KEY att_ip (attempt_ip, attempt_time),
@@ -410,7 +410,7 @@ CREATE TABLE phpbb_login_attempts (
# Table: 'phpbb_moderator_cache'
CREATE TABLE phpbb_moderator_cache (
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
username blob NOT NULL,
group_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
group_name blob NOT NULL,
@@ -469,7 +469,7 @@ CREATE TABLE phpbb_notifications (
notification_type_id smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
item_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
item_parent_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
notification_read tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
notification_time int(11) UNSIGNED DEFAULT '1' NOT NULL,
notification_data blob NOT NULL,
@@ -481,7 +481,7 @@ CREATE TABLE phpbb_notifications (
# Table: 'phpbb_oauth_accounts'
CREATE TABLE phpbb_oauth_accounts (
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
provider varbinary(255) DEFAULT '' NOT NULL,
oauth_provider_id blob NOT NULL,
PRIMARY KEY (user_id, provider)
@@ -490,7 +490,7 @@ CREATE TABLE phpbb_oauth_accounts (
# Table: 'phpbb_oauth_tokens'
CREATE TABLE phpbb_oauth_tokens (
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
session_id binary(32) DEFAULT '' NOT NULL,
provider varbinary(255) DEFAULT '' NOT NULL,
oauth_token mediumblob NOT NULL,
@@ -502,7 +502,7 @@ CREATE TABLE phpbb_oauth_tokens (
# Table: 'phpbb_poll_options'
CREATE TABLE phpbb_poll_options (
poll_option_id tinyint(4) DEFAULT '0' NOT NULL,
- topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ topic_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
poll_option_text blob NOT NULL,
poll_option_total mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
KEY poll_opt_id (poll_option_id),
@@ -512,7 +512,7 @@ CREATE TABLE phpbb_poll_options (
# Table: 'phpbb_poll_votes'
CREATE TABLE phpbb_poll_votes (
- topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ topic_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
poll_option_id tinyint(4) DEFAULT '0' NOT NULL,
vote_user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
vote_user_ip varbinary(40) DEFAULT '' NOT NULL,
@@ -524,8 +524,8 @@ CREATE TABLE phpbb_poll_votes (
# Table: 'phpbb_posts'
CREATE TABLE phpbb_posts (
- post_id mediumint(8) UNSIGNED NOT NULL auto_increment,
- topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ post_id INT(10) UNSIGNED NOT NULL auto_increment,
+ topic_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
poster_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
icon_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
@@ -599,7 +599,7 @@ CREATE TABLE phpbb_privmsgs (
# Table: 'phpbb_privmsgs_folder'
CREATE TABLE phpbb_privmsgs_folder (
folder_id mediumint(8) UNSIGNED NOT NULL auto_increment,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
folder_name blob NOT NULL,
pm_count mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
PRIMARY KEY (folder_id),
@@ -610,7 +610,7 @@ CREATE TABLE phpbb_privmsgs_folder (
# Table: 'phpbb_privmsgs_rules'
CREATE TABLE phpbb_privmsgs_rules (
rule_id mediumint(8) UNSIGNED NOT NULL auto_increment,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
rule_check mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
rule_connection mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
rule_string blob NOT NULL,
@@ -626,7 +626,7 @@ CREATE TABLE phpbb_privmsgs_rules (
# Table: 'phpbb_privmsgs_to'
CREATE TABLE phpbb_privmsgs_to (
msg_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
author_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
pm_deleted tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
pm_new tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
@@ -672,7 +672,7 @@ CREATE TABLE phpbb_profile_fields (
# Table: 'phpbb_profile_fields_data'
CREATE TABLE phpbb_profile_fields_data (
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
pf_phpbb_location varbinary(255) DEFAULT '' NOT NULL,
pf_phpbb_interests blob NOT NULL,
pf_phpbb_occupation blob NOT NULL,
@@ -717,9 +717,9 @@ CREATE TABLE phpbb_ranks (
CREATE TABLE phpbb_reports (
report_id mediumint(8) UNSIGNED NOT NULL auto_increment,
reason_id smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
- post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ post_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
pm_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
user_notify tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
report_closed tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
report_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
@@ -770,7 +770,7 @@ CREATE TABLE phpbb_search_wordlist (
# Table: 'phpbb_search_wordmatch'
CREATE TABLE phpbb_search_wordmatch (
- post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ post_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
word_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
title_match tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
UNIQUE unq_mtch (word_id, post_id, title_match),
@@ -804,7 +804,7 @@ CREATE TABLE phpbb_sessions (
# Table: 'phpbb_sessions_keys'
CREATE TABLE phpbb_sessions_keys (
key_id binary(32) DEFAULT '' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
last_ip varbinary(40) DEFAULT '' NOT NULL,
last_login int(11) UNSIGNED DEFAULT '0' NOT NULL,
PRIMARY KEY (key_id, user_id),
@@ -865,7 +865,7 @@ CREATE TABLE phpbb_teampage (
# Table: 'phpbb_topics'
CREATE TABLE phpbb_topics (
- topic_id mediumint(8) UNSIGNED NOT NULL auto_increment,
+ topic_id INT(10) UNSIGNED NOT NULL auto_increment,
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
icon_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
topic_attachment tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
@@ -915,8 +915,8 @@ CREATE TABLE phpbb_topics (
# Table: 'phpbb_topics_track'
CREATE TABLE phpbb_topics_track (
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
+ topic_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
mark_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
PRIMARY KEY (user_id, topic_id),
@@ -927,8 +927,8 @@ CREATE TABLE phpbb_topics_track (
# Table: 'phpbb_topics_posted'
CREATE TABLE phpbb_topics_posted (
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
+ topic_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
topic_posted tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
PRIMARY KEY (user_id, topic_id)
);
@@ -936,8 +936,8 @@ CREATE TABLE phpbb_topics_posted (
# Table: 'phpbb_topics_watch'
CREATE TABLE phpbb_topics_watch (
- topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ topic_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
notify_status tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
KEY topic_id (topic_id),
KEY user_id (user_id),
@@ -949,7 +949,7 @@ CREATE TABLE phpbb_topics_watch (
CREATE TABLE phpbb_user_notifications (
item_type varbinary(255) DEFAULT '' NOT NULL,
item_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
method varbinary(255) DEFAULT '' NOT NULL,
notify tinyint(1) UNSIGNED DEFAULT '1' NOT NULL
);
@@ -958,7 +958,7 @@ CREATE TABLE phpbb_user_notifications (
# Table: 'phpbb_user_group'
CREATE TABLE phpbb_user_group (
group_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
group_leader tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
user_pending tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
KEY group_id (group_id),
@@ -969,7 +969,7 @@ CREATE TABLE phpbb_user_group (
# Table: 'phpbb_users'
CREATE TABLE phpbb_users (
- user_id mediumint(8) UNSIGNED NOT NULL auto_increment,
+ user_id INT(10) UNSIGNED NOT NULL auto_increment,
user_type tinyint(2) DEFAULT '0' NOT NULL,
group_id mediumint(8) UNSIGNED DEFAULT '3' NOT NULL,
user_permissions mediumblob NOT NULL,
@@ -1052,8 +1052,8 @@ CREATE TABLE phpbb_users (
# Table: 'phpbb_warnings'
CREATE TABLE phpbb_warnings (
warning_id mediumint(8) UNSIGNED NOT NULL auto_increment,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
+ post_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
log_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
warning_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
PRIMARY KEY (warning_id)
@@ -1071,7 +1071,7 @@ CREATE TABLE phpbb_words (
# Table: 'phpbb_zebra'
CREATE TABLE phpbb_zebra (
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
zebra_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
friend tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
foe tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
diff --git a/phpBB/install/schemas/mysql_41_schema.sql b/phpBB/install/schemas/mysql_41_schema.sql
index b345e1f474..38db154905 100644
--- a/phpBB/install/schemas/mysql_41_schema.sql
+++ b/phpBB/install/schemas/mysql_41_schema.sql
@@ -7,7 +7,7 @@
CREATE TABLE phpbb_attachments (
attach_id mediumint(8) UNSIGNED NOT NULL auto_increment,
post_msg_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ topic_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
in_message tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
poster_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
is_orphan tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
@@ -79,7 +79,7 @@ CREATE TABLE phpbb_acl_roles_data (
# Table: 'phpbb_acl_users'
CREATE TABLE phpbb_acl_users (
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
auth_option_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
auth_role_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
@@ -128,8 +128,8 @@ CREATE TABLE phpbb_bbcodes (
# Table: 'phpbb_bookmarks'
CREATE TABLE phpbb_bookmarks (
- topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ topic_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
PRIMARY KEY (topic_id, user_id)
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
@@ -139,7 +139,7 @@ CREATE TABLE phpbb_bots (
bot_id mediumint(8) UNSIGNED NOT NULL auto_increment,
bot_active tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
bot_name varchar(255) DEFAULT '' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
bot_agent varchar(255) DEFAULT '' NOT NULL,
bot_ip varchar(255) DEFAULT '' NOT NULL,
PRIMARY KEY (bot_id),
@@ -189,8 +189,8 @@ CREATE TABLE phpbb_disallow (
# Table: 'phpbb_drafts'
CREATE TABLE phpbb_drafts (
draft_id mediumint(8) UNSIGNED NOT NULL auto_increment,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
+ topic_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
save_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
draft_subject varchar(255) DEFAULT '' NOT NULL,
@@ -289,7 +289,7 @@ CREATE TABLE phpbb_forums (
# Table: 'phpbb_forums_access'
CREATE TABLE phpbb_forums_access (
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
session_id char(32) DEFAULT '' NOT NULL,
PRIMARY KEY (forum_id, user_id, session_id)
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
@@ -297,7 +297,7 @@ CREATE TABLE phpbb_forums_access (
# Table: 'phpbb_forums_track'
CREATE TABLE phpbb_forums_track (
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
mark_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
PRIMARY KEY (user_id, forum_id)
@@ -307,7 +307,7 @@ CREATE TABLE phpbb_forums_track (
# Table: 'phpbb_forums_watch'
CREATE TABLE phpbb_forums_watch (
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
notify_status tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
KEY forum_id (forum_id),
KEY user_id (user_id),
@@ -373,9 +373,9 @@ CREATE TABLE phpbb_lang (
CREATE TABLE phpbb_log (
log_id mediumint(8) UNSIGNED NOT NULL auto_increment,
log_type tinyint(4) DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ topic_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
reportee_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
log_ip varchar(40) DEFAULT '' NOT NULL,
log_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
@@ -397,7 +397,7 @@ CREATE TABLE phpbb_login_attempts (
attempt_browser varchar(150) DEFAULT '' NOT NULL,
attempt_forwarded_for varchar(255) DEFAULT '' NOT NULL,
attempt_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
username varchar(255) DEFAULT '0' NOT NULL,
username_clean varchar(255) DEFAULT '0' NOT NULL,
KEY att_ip (attempt_ip, attempt_time),
@@ -410,7 +410,7 @@ CREATE TABLE phpbb_login_attempts (
# Table: 'phpbb_moderator_cache'
CREATE TABLE phpbb_moderator_cache (
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
username varchar(255) DEFAULT '' NOT NULL,
group_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
group_name varchar(255) DEFAULT '' NOT NULL,
@@ -469,7 +469,7 @@ CREATE TABLE phpbb_notifications (
notification_type_id smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
item_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
item_parent_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
notification_read tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
notification_time int(11) UNSIGNED DEFAULT '1' NOT NULL,
notification_data text NOT NULL,
@@ -481,7 +481,7 @@ CREATE TABLE phpbb_notifications (
# Table: 'phpbb_oauth_accounts'
CREATE TABLE phpbb_oauth_accounts (
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
provider varchar(255) DEFAULT '' NOT NULL,
oauth_provider_id text NOT NULL,
PRIMARY KEY (user_id, provider)
@@ -490,7 +490,7 @@ CREATE TABLE phpbb_oauth_accounts (
# Table: 'phpbb_oauth_tokens'
CREATE TABLE phpbb_oauth_tokens (
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
session_id char(32) DEFAULT '' NOT NULL,
provider varchar(255) DEFAULT '' NOT NULL,
oauth_token mediumtext NOT NULL,
@@ -502,7 +502,7 @@ CREATE TABLE phpbb_oauth_tokens (
# Table: 'phpbb_poll_options'
CREATE TABLE phpbb_poll_options (
poll_option_id tinyint(4) DEFAULT '0' NOT NULL,
- topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ topic_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
poll_option_text text NOT NULL,
poll_option_total mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
KEY poll_opt_id (poll_option_id),
@@ -512,7 +512,7 @@ CREATE TABLE phpbb_poll_options (
# Table: 'phpbb_poll_votes'
CREATE TABLE phpbb_poll_votes (
- topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ topic_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
poll_option_id tinyint(4) DEFAULT '0' NOT NULL,
vote_user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
vote_user_ip varchar(40) DEFAULT '' NOT NULL,
@@ -524,8 +524,8 @@ CREATE TABLE phpbb_poll_votes (
# Table: 'phpbb_posts'
CREATE TABLE phpbb_posts (
- post_id mediumint(8) UNSIGNED NOT NULL auto_increment,
- topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ post_id INT(10) UNSIGNED NOT NULL auto_increment,
+ topic_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
poster_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
icon_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
@@ -599,7 +599,7 @@ CREATE TABLE phpbb_privmsgs (
# Table: 'phpbb_privmsgs_folder'
CREATE TABLE phpbb_privmsgs_folder (
folder_id mediumint(8) UNSIGNED NOT NULL auto_increment,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
folder_name varchar(255) DEFAULT '' NOT NULL,
pm_count mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
PRIMARY KEY (folder_id),
@@ -610,7 +610,7 @@ CREATE TABLE phpbb_privmsgs_folder (
# Table: 'phpbb_privmsgs_rules'
CREATE TABLE phpbb_privmsgs_rules (
rule_id mediumint(8) UNSIGNED NOT NULL auto_increment,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
rule_check mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
rule_connection mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
rule_string varchar(255) DEFAULT '' NOT NULL,
@@ -626,7 +626,7 @@ CREATE TABLE phpbb_privmsgs_rules (
# Table: 'phpbb_privmsgs_to'
CREATE TABLE phpbb_privmsgs_to (
msg_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
author_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
pm_deleted tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
pm_new tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
@@ -672,7 +672,7 @@ CREATE TABLE phpbb_profile_fields (
# Table: 'phpbb_profile_fields_data'
CREATE TABLE phpbb_profile_fields_data (
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
pf_phpbb_location varchar(255) DEFAULT '' NOT NULL,
pf_phpbb_interests text NOT NULL,
pf_phpbb_occupation text NOT NULL,
@@ -717,9 +717,9 @@ CREATE TABLE phpbb_ranks (
CREATE TABLE phpbb_reports (
report_id mediumint(8) UNSIGNED NOT NULL auto_increment,
reason_id smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
- post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ post_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
pm_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
user_notify tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
report_closed tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
report_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
@@ -770,7 +770,7 @@ CREATE TABLE phpbb_search_wordlist (
# Table: 'phpbb_search_wordmatch'
CREATE TABLE phpbb_search_wordmatch (
- post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ post_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
word_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
title_match tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
UNIQUE unq_mtch (word_id, post_id, title_match),
@@ -804,7 +804,7 @@ CREATE TABLE phpbb_sessions (
# Table: 'phpbb_sessions_keys'
CREATE TABLE phpbb_sessions_keys (
key_id char(32) DEFAULT '' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
last_ip varchar(40) DEFAULT '' NOT NULL,
last_login int(11) UNSIGNED DEFAULT '0' NOT NULL,
PRIMARY KEY (key_id, user_id),
@@ -865,7 +865,7 @@ CREATE TABLE phpbb_teampage (
# Table: 'phpbb_topics'
CREATE TABLE phpbb_topics (
- topic_id mediumint(8) UNSIGNED NOT NULL auto_increment,
+ topic_id INT(10) UNSIGNED NOT NULL auto_increment,
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
icon_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
topic_attachment tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
@@ -915,8 +915,8 @@ CREATE TABLE phpbb_topics (
# Table: 'phpbb_topics_track'
CREATE TABLE phpbb_topics_track (
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
+ topic_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
mark_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
PRIMARY KEY (user_id, topic_id),
@@ -927,8 +927,8 @@ CREATE TABLE phpbb_topics_track (
# Table: 'phpbb_topics_posted'
CREATE TABLE phpbb_topics_posted (
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
+ topic_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
topic_posted tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
PRIMARY KEY (user_id, topic_id)
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
@@ -936,8 +936,8 @@ CREATE TABLE phpbb_topics_posted (
# Table: 'phpbb_topics_watch'
CREATE TABLE phpbb_topics_watch (
- topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ topic_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
notify_status tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
KEY topic_id (topic_id),
KEY user_id (user_id),
@@ -949,7 +949,7 @@ CREATE TABLE phpbb_topics_watch (
CREATE TABLE phpbb_user_notifications (
item_type varchar(255) DEFAULT '' NOT NULL,
item_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
method varchar(255) DEFAULT '' NOT NULL,
notify tinyint(1) UNSIGNED DEFAULT '1' NOT NULL
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
@@ -958,7 +958,7 @@ CREATE TABLE phpbb_user_notifications (
# Table: 'phpbb_user_group'
CREATE TABLE phpbb_user_group (
group_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
group_leader tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
user_pending tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
KEY group_id (group_id),
@@ -969,7 +969,7 @@ CREATE TABLE phpbb_user_group (
# Table: 'phpbb_users'
CREATE TABLE phpbb_users (
- user_id mediumint(8) UNSIGNED NOT NULL auto_increment,
+ user_id INT(10) UNSIGNED NOT NULL auto_increment,
user_type tinyint(2) DEFAULT '0' NOT NULL,
group_id mediumint(8) UNSIGNED DEFAULT '3' NOT NULL,
user_permissions mediumtext NOT NULL,
@@ -1052,8 +1052,8 @@ CREATE TABLE phpbb_users (
# Table: 'phpbb_warnings'
CREATE TABLE phpbb_warnings (
warning_id mediumint(8) UNSIGNED NOT NULL auto_increment,
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
- post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
+ post_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
log_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
warning_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
PRIMARY KEY (warning_id)
@@ -1071,7 +1071,7 @@ CREATE TABLE phpbb_words (
# Table: 'phpbb_zebra'
CREATE TABLE phpbb_zebra (
- user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+ user_id INT(10) UNSIGNED DEFAULT '0' NOT NULL,
zebra_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
friend tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
foe tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
diff --git a/phpBB/install/schemas/oracle_schema.sql b/phpBB/install/schemas/oracle_schema.sql
index b819ba2c59..fe3cd8312e 100644
--- a/phpBB/install/schemas/oracle_schema.sql
+++ b/phpBB/install/schemas/oracle_schema.sql
@@ -49,7 +49,7 @@ CONNECT phpbb/phpbb_password;
CREATE TABLE phpbb_attachments (
attach_id number(8) NOT NULL,
post_msg_id number(8) DEFAULT '0' NOT NULL,
- topic_id number(8) DEFAULT '0' NOT NULL,
+ topic_id number(10) DEFAULT '0' NOT NULL,
in_message number(1) DEFAULT '0' NOT NULL,
poster_id number(8) DEFAULT '0' NOT NULL,
is_orphan number(1) DEFAULT '1' NOT NULL,
@@ -195,7 +195,7 @@ CREATE INDEX phpbb_acl_roles_data_ath_op_id ON phpbb_acl_roles_data (auth_option
Table: 'phpbb_acl_users'
*/
CREATE TABLE phpbb_acl_users (
- user_id number(8) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
forum_id number(8) DEFAULT '0' NOT NULL,
auth_option_id number(8) DEFAULT '0' NOT NULL,
auth_role_id number(8) DEFAULT '0' NOT NULL,
@@ -277,8 +277,8 @@ CREATE INDEX phpbb_bbcodes_display_on_post ON phpbb_bbcodes (display_on_posting)
Table: 'phpbb_bookmarks'
*/
CREATE TABLE phpbb_bookmarks (
- topic_id number(8) DEFAULT '0' NOT NULL,
- user_id number(8) DEFAULT '0' NOT NULL,
+ topic_id number(10) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
CONSTRAINT pk_phpbb_bookmarks PRIMARY KEY (topic_id, user_id)
)
/
@@ -291,7 +291,7 @@ CREATE TABLE phpbb_bots (
bot_id number(8) NOT NULL,
bot_active number(1) DEFAULT '1' NOT NULL,
bot_name varchar2(765) DEFAULT '' ,
- user_id number(8) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
bot_agent varchar2(255) DEFAULT '' ,
bot_ip varchar2(255) DEFAULT '' ,
CONSTRAINT pk_phpbb_bots PRIMARY KEY (bot_id)
@@ -391,8 +391,8 @@ END;
*/
CREATE TABLE phpbb_drafts (
draft_id number(8) NOT NULL,
- user_id number(8) DEFAULT '0' NOT NULL,
- topic_id number(8) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
+ topic_id number(10) DEFAULT '0' NOT NULL,
forum_id number(8) DEFAULT '0' NOT NULL,
save_time number(11) DEFAULT '0' NOT NULL,
draft_subject varchar2(765) DEFAULT '' ,
@@ -573,7 +573,7 @@ END;
*/
CREATE TABLE phpbb_forums_access (
forum_id number(8) DEFAULT '0' NOT NULL,
- user_id number(8) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
session_id char(32) DEFAULT '' ,
CONSTRAINT pk_phpbb_forums_access PRIMARY KEY (forum_id, user_id, session_id)
)
@@ -584,7 +584,7 @@ CREATE TABLE phpbb_forums_access (
Table: 'phpbb_forums_track'
*/
CREATE TABLE phpbb_forums_track (
- user_id number(8) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
forum_id number(8) DEFAULT '0' NOT NULL,
mark_time number(11) DEFAULT '0' NOT NULL,
CONSTRAINT pk_phpbb_forums_track PRIMARY KEY (user_id, forum_id)
@@ -597,7 +597,7 @@ CREATE TABLE phpbb_forums_track (
*/
CREATE TABLE phpbb_forums_watch (
forum_id number(8) DEFAULT '0' NOT NULL,
- user_id number(8) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
notify_status number(1) DEFAULT '0' NOT NULL
)
/
@@ -729,9 +729,9 @@ END;
CREATE TABLE phpbb_log (
log_id number(8) NOT NULL,
log_type number(4) DEFAULT '0' NOT NULL,
- user_id number(8) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
forum_id number(8) DEFAULT '0' NOT NULL,
- topic_id number(8) DEFAULT '0' NOT NULL,
+ topic_id number(10) DEFAULT '0' NOT NULL,
reportee_id number(8) DEFAULT '0' NOT NULL,
log_ip varchar2(40) DEFAULT '' ,
log_time number(11) DEFAULT '0' NOT NULL,
@@ -778,7 +778,7 @@ CREATE TABLE phpbb_login_attempts (
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,
+ user_id number(10) DEFAULT '0' NOT NULL,
username varchar2(765) DEFAULT '0' NOT NULL,
username_clean varchar2(255) DEFAULT '0' NOT NULL
)
@@ -798,7 +798,7 @@ CREATE INDEX phpbb_login_attempts_user_id ON phpbb_login_attempts (user_id)
*/
CREATE TABLE phpbb_moderator_cache (
forum_id number(8) DEFAULT '0' NOT NULL,
- user_id number(8) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
username varchar2(765) DEFAULT '' ,
group_id number(8) DEFAULT '0' NOT NULL,
group_name varchar2(765) DEFAULT '' ,
@@ -906,7 +906,7 @@ CREATE TABLE phpbb_notifications (
notification_type_id number(4) DEFAULT '0' NOT NULL,
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,
+ user_id number(10) DEFAULT '0' NOT NULL,
notification_read number(1) DEFAULT '0' NOT NULL,
notification_time number(11) DEFAULT '1' NOT NULL,
notification_data clob DEFAULT '' ,
@@ -939,7 +939,7 @@ END;
Table: 'phpbb_oauth_accounts'
*/
CREATE TABLE phpbb_oauth_accounts (
- user_id number(8) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
provider varchar2(255) DEFAULT '' ,
oauth_provider_id clob DEFAULT '' ,
CONSTRAINT pk_phpbb_oauth_accounts PRIMARY KEY (user_id, provider)
@@ -951,7 +951,7 @@ CREATE TABLE phpbb_oauth_accounts (
Table: 'phpbb_oauth_tokens'
*/
CREATE TABLE phpbb_oauth_tokens (
- user_id number(8) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
session_id char(32) DEFAULT '' ,
provider varchar2(255) DEFAULT '' ,
oauth_token clob DEFAULT ''
@@ -968,7 +968,7 @@ CREATE INDEX phpbb_oauth_tokens_provider ON phpbb_oauth_tokens (provider)
*/
CREATE TABLE phpbb_poll_options (
poll_option_id number(4) DEFAULT '0' NOT NULL,
- topic_id number(8) DEFAULT '0' NOT NULL,
+ topic_id number(10) DEFAULT '0' NOT NULL,
poll_option_text clob DEFAULT '' ,
poll_option_total number(8) DEFAULT '0' NOT NULL
)
@@ -983,7 +983,7 @@ CREATE INDEX phpbb_poll_options_topic_id ON phpbb_poll_options (topic_id)
Table: 'phpbb_poll_votes'
*/
CREATE TABLE phpbb_poll_votes (
- topic_id number(8) DEFAULT '0' NOT NULL,
+ topic_id number(10) DEFAULT '0' NOT NULL,
poll_option_id number(4) DEFAULT '0' NOT NULL,
vote_user_id number(8) DEFAULT '0' NOT NULL,
vote_user_ip varchar2(40) DEFAULT ''
@@ -1001,8 +1001,8 @@ CREATE INDEX phpbb_poll_votes_vote_user_ip ON phpbb_poll_votes (vote_user_ip)
Table: 'phpbb_posts'
*/
CREATE TABLE phpbb_posts (
- post_id number(8) NOT NULL,
- topic_id number(8) DEFAULT '0' NOT NULL,
+ post_id number(10) NOT NULL,
+ topic_id number(10) DEFAULT '0' NOT NULL,
forum_id number(8) DEFAULT '0' NOT NULL,
poster_id number(8) DEFAULT '0' NOT NULL,
icon_id number(8) DEFAULT '0' NOT NULL,
@@ -1125,7 +1125,7 @@ END;
*/
CREATE TABLE phpbb_privmsgs_folder (
folder_id number(8) NOT NULL,
- user_id number(8) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
folder_name varchar2(765) DEFAULT '' ,
pm_count number(8) DEFAULT '0' NOT NULL,
CONSTRAINT pk_phpbb_privmsgs_folder PRIMARY KEY (folder_id)
@@ -1156,7 +1156,7 @@ END;
*/
CREATE TABLE phpbb_privmsgs_rules (
rule_id number(8) NOT NULL,
- user_id number(8) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
rule_check number(8) DEFAULT '0' NOT NULL,
rule_connection number(8) DEFAULT '0' NOT NULL,
rule_string varchar2(765) DEFAULT '' ,
@@ -1192,7 +1192,7 @@ END;
*/
CREATE TABLE phpbb_privmsgs_to (
msg_id number(8) DEFAULT '0' NOT NULL,
- user_id number(8) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
author_id number(8) DEFAULT '0' NOT NULL,
pm_deleted number(1) DEFAULT '0' NOT NULL,
pm_new number(1) DEFAULT '1' NOT NULL,
@@ -1265,7 +1265,7 @@ END;
Table: 'phpbb_profile_fields_data'
*/
CREATE TABLE phpbb_profile_fields_data (
- user_id number(8) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
pf_phpbb_location varchar2(255) DEFAULT '' ,
pf_phpbb_interests clob DEFAULT '' ,
pf_phpbb_occupation clob DEFAULT '' ,
@@ -1338,9 +1338,9 @@ END;
CREATE TABLE phpbb_reports (
report_id number(8) NOT NULL,
reason_id number(4) DEFAULT '0' NOT NULL,
- post_id number(8) DEFAULT '0' NOT NULL,
+ post_id number(10) DEFAULT '0' NOT NULL,
pm_id number(8) DEFAULT '0' NOT NULL,
- user_id number(8) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
user_notify number(1) DEFAULT '0' NOT NULL,
report_closed number(1) DEFAULT '0' NOT NULL,
report_time number(11) DEFAULT '0' NOT NULL,
@@ -1454,7 +1454,7 @@ END;
Table: 'phpbb_search_wordmatch'
*/
CREATE TABLE phpbb_search_wordmatch (
- post_id number(8) DEFAULT '0' NOT NULL,
+ post_id number(10) DEFAULT '0' NOT NULL,
word_id number(8) DEFAULT '0' NOT NULL,
title_match number(1) DEFAULT '0' NOT NULL,
CONSTRAINT u_phpbb_unq_mtch UNIQUE (word_id, post_id, title_match)
@@ -1499,7 +1499,7 @@ CREATE INDEX phpbb_sessions_session_fid ON phpbb_sessions (session_forum_id)
*/
CREATE TABLE phpbb_sessions_keys (
key_id char(32) DEFAULT '' ,
- user_id number(8) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
last_ip varchar2(40) DEFAULT '' ,
last_login number(11) DEFAULT '0' NOT NULL,
CONSTRAINT pk_phpbb_sessions_keys PRIMARY KEY (key_id, user_id)
@@ -1641,7 +1641,7 @@ END;
Table: 'phpbb_topics'
*/
CREATE TABLE phpbb_topics (
- topic_id number(8) NOT NULL,
+ topic_id number(10) NOT NULL,
forum_id number(8) DEFAULT '0' NOT NULL,
icon_id number(8) DEFAULT '0' NOT NULL,
topic_attachment number(1) DEFAULT '0' NOT NULL,
@@ -1716,8 +1716,8 @@ END;
Table: 'phpbb_topics_track'
*/
CREATE TABLE phpbb_topics_track (
- user_id number(8) DEFAULT '0' NOT NULL,
- topic_id number(8) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
+ topic_id number(10) DEFAULT '0' NOT NULL,
forum_id number(8) DEFAULT '0' NOT NULL,
mark_time number(11) DEFAULT '0' NOT NULL,
CONSTRAINT pk_phpbb_topics_track PRIMARY KEY (user_id, topic_id)
@@ -1733,8 +1733,8 @@ CREATE INDEX phpbb_topics_track_forum_id ON phpbb_topics_track (forum_id)
Table: 'phpbb_topics_posted'
*/
CREATE TABLE phpbb_topics_posted (
- user_id number(8) DEFAULT '0' NOT NULL,
- topic_id number(8) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
+ topic_id number(10) DEFAULT '0' NOT NULL,
topic_posted number(1) DEFAULT '0' NOT NULL,
CONSTRAINT pk_phpbb_topics_posted PRIMARY KEY (user_id, topic_id)
)
@@ -1745,8 +1745,8 @@ CREATE TABLE phpbb_topics_posted (
Table: 'phpbb_topics_watch'
*/
CREATE TABLE phpbb_topics_watch (
- topic_id number(8) DEFAULT '0' NOT NULL,
- user_id number(8) DEFAULT '0' NOT NULL,
+ topic_id number(10) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
notify_status number(1) DEFAULT '0' NOT NULL
)
/
@@ -1764,7 +1764,7 @@ CREATE INDEX phpbb_topics_watch_notify_stat ON phpbb_topics_watch (notify_status
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,
+ user_id number(10) DEFAULT '0' NOT NULL,
method varchar2(255) DEFAULT '' ,
notify number(1) DEFAULT '1' NOT NULL
)
@@ -1776,7 +1776,7 @@ CREATE TABLE phpbb_user_notifications (
*/
CREATE TABLE phpbb_user_group (
group_id number(8) DEFAULT '0' NOT NULL,
- user_id number(8) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
group_leader number(1) DEFAULT '0' NOT NULL,
user_pending number(1) DEFAULT '1' NOT NULL
)
@@ -1793,7 +1793,7 @@ CREATE INDEX phpbb_user_group_group_leader ON phpbb_user_group (group_leader)
Table: 'phpbb_users'
*/
CREATE TABLE phpbb_users (
- user_id number(8) NOT NULL,
+ user_id number(10) NOT NULL,
user_type number(2) DEFAULT '0' NOT NULL,
group_id number(8) DEFAULT '3' NOT NULL,
user_permissions clob DEFAULT '' ,
@@ -1898,8 +1898,8 @@ END;
*/
CREATE TABLE phpbb_warnings (
warning_id number(8) NOT NULL,
- user_id number(8) DEFAULT '0' NOT NULL,
- post_id number(8) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
+ post_id number(10) DEFAULT '0' NOT NULL,
log_id number(8) DEFAULT '0' NOT NULL,
warning_time number(11) DEFAULT '0' NOT NULL,
CONSTRAINT pk_phpbb_warnings PRIMARY KEY (warning_id)
@@ -1955,7 +1955,7 @@ END;
Table: 'phpbb_zebra'
*/
CREATE TABLE phpbb_zebra (
- user_id number(8) DEFAULT '0' NOT NULL,
+ user_id number(10) DEFAULT '0' NOT NULL,
zebra_id number(8) DEFAULT '0' NOT NULL,
friend number(1) DEFAULT '0' NOT NULL,
foe number(1) DEFAULT '0' NOT NULL,
diff --git a/phpBB/install/schemas/postgres_schema.sql b/phpBB/install/schemas/postgres_schema.sql
index be8af3c873..031a473a84 100644
--- a/phpBB/install/schemas/postgres_schema.sql
+++ b/phpBB/install/schemas/postgres_schema.sql
@@ -91,7 +91,7 @@ CREATE SEQUENCE phpbb_attachments_seq;
CREATE TABLE phpbb_attachments (
attach_id INT4 DEFAULT nextval('phpbb_attachments_seq'),
post_msg_id INT4 DEFAULT '0' NOT NULL CHECK (post_msg_id >= 0),
- topic_id INT4 DEFAULT '0' NOT NULL CHECK (topic_id >= 0),
+ topic_id INT4 DEFAULT '0' NOT NULL,
in_message INT2 DEFAULT '0' NOT NULL CHECK (in_message >= 0),
poster_id INT4 DEFAULT '0' NOT NULL CHECK (poster_id >= 0),
is_orphan INT2 DEFAULT '1' NOT NULL CHECK (is_orphan >= 0),
@@ -177,7 +177,7 @@ CREATE INDEX phpbb_acl_roles_data_ath_op_id ON phpbb_acl_roles_data (auth_option
Table: 'phpbb_acl_users'
*/
CREATE TABLE phpbb_acl_users (
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
forum_id INT4 DEFAULT '0' NOT NULL CHECK (forum_id >= 0),
auth_option_id INT4 DEFAULT '0' NOT NULL CHECK (auth_option_id >= 0),
auth_role_id INT4 DEFAULT '0' NOT NULL CHECK (auth_role_id >= 0),
@@ -234,8 +234,8 @@ CREATE INDEX phpbb_bbcodes_display_on_post ON phpbb_bbcodes (display_on_posting)
Table: 'phpbb_bookmarks'
*/
CREATE TABLE phpbb_bookmarks (
- topic_id INT4 DEFAULT '0' NOT NULL CHECK (topic_id >= 0),
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
+ topic_id INT4 DEFAULT '0' NOT NULL,
+ user_id INT4 DEFAULT '0' NOT NULL,
PRIMARY KEY (topic_id, user_id)
);
@@ -249,7 +249,7 @@ CREATE TABLE phpbb_bots (
bot_id INT4 DEFAULT nextval('phpbb_bots_seq'),
bot_active INT2 DEFAULT '1' NOT NULL CHECK (bot_active >= 0),
bot_name varchar(255) DEFAULT '' NOT NULL,
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
bot_agent varchar(255) DEFAULT '' NOT NULL,
bot_ip varchar(255) DEFAULT '' NOT NULL,
PRIMARY KEY (bot_id)
@@ -313,8 +313,8 @@ CREATE SEQUENCE phpbb_drafts_seq;
CREATE TABLE phpbb_drafts (
draft_id INT4 DEFAULT nextval('phpbb_drafts_seq'),
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
- topic_id INT4 DEFAULT '0' NOT NULL CHECK (topic_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
+ topic_id INT4 DEFAULT '0' NOT NULL,
forum_id INT4 DEFAULT '0' NOT NULL CHECK (forum_id >= 0),
save_time INT4 DEFAULT '0' NOT NULL CHECK (save_time >= 0),
draft_subject varchar(255) DEFAULT '' NOT NULL,
@@ -429,7 +429,7 @@ CREATE INDEX phpbb_forums_forum_lastpost_id ON phpbb_forums (forum_last_post_id)
*/
CREATE TABLE phpbb_forums_access (
forum_id INT4 DEFAULT '0' NOT NULL CHECK (forum_id >= 0),
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
session_id char(32) DEFAULT '' NOT NULL,
PRIMARY KEY (forum_id, user_id, session_id)
);
@@ -439,7 +439,7 @@ CREATE TABLE phpbb_forums_access (
Table: 'phpbb_forums_track'
*/
CREATE TABLE phpbb_forums_track (
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
forum_id INT4 DEFAULT '0' NOT NULL CHECK (forum_id >= 0),
mark_time INT4 DEFAULT '0' NOT NULL CHECK (mark_time >= 0),
PRIMARY KEY (user_id, forum_id)
@@ -451,7 +451,7 @@ CREATE TABLE phpbb_forums_track (
*/
CREATE TABLE phpbb_forums_watch (
forum_id INT4 DEFAULT '0' NOT NULL CHECK (forum_id >= 0),
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
notify_status INT2 DEFAULT '0' NOT NULL CHECK (notify_status >= 0)
);
@@ -533,9 +533,9 @@ CREATE SEQUENCE phpbb_log_seq;
CREATE TABLE phpbb_log (
log_id INT4 DEFAULT nextval('phpbb_log_seq'),
log_type INT2 DEFAULT '0' NOT NULL,
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
forum_id INT4 DEFAULT '0' NOT NULL CHECK (forum_id >= 0),
- topic_id INT4 DEFAULT '0' NOT NULL CHECK (topic_id >= 0),
+ topic_id INT4 DEFAULT '0' NOT NULL,
reportee_id INT4 DEFAULT '0' NOT NULL CHECK (reportee_id >= 0),
log_ip varchar(40) DEFAULT '' NOT NULL,
log_time INT4 DEFAULT '0' NOT NULL CHECK (log_time >= 0),
@@ -559,7 +559,7 @@ CREATE TABLE phpbb_login_attempts (
attempt_browser varchar(150) DEFAULT '' NOT NULL,
attempt_forwarded_for varchar(255) DEFAULT '' NOT NULL,
attempt_time INT4 DEFAULT '0' NOT NULL CHECK (attempt_time >= 0),
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
username varchar(255) DEFAULT '0' NOT NULL,
username_clean varchar_ci DEFAULT '0' NOT NULL
);
@@ -574,7 +574,7 @@ CREATE INDEX phpbb_login_attempts_user_id ON phpbb_login_attempts (user_id);
*/
CREATE TABLE phpbb_moderator_cache (
forum_id INT4 DEFAULT '0' NOT NULL CHECK (forum_id >= 0),
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
username varchar(255) DEFAULT '' NOT NULL,
group_id INT4 DEFAULT '0' NOT NULL CHECK (group_id >= 0),
group_name varchar(255) DEFAULT '' NOT NULL,
@@ -647,7 +647,7 @@ CREATE TABLE phpbb_notifications (
notification_type_id INT2 DEFAULT '0' NOT NULL CHECK (notification_type_id >= 0),
item_id INT4 DEFAULT '0' NOT NULL CHECK (item_id >= 0),
item_parent_id INT4 DEFAULT '0' NOT NULL CHECK (item_parent_id >= 0),
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
notification_read INT2 DEFAULT '0' NOT NULL CHECK (notification_read >= 0),
notification_time INT4 DEFAULT '1' NOT NULL CHECK (notification_time >= 0),
notification_data varchar(4000) DEFAULT '' NOT NULL,
@@ -661,7 +661,7 @@ CREATE INDEX phpbb_notifications_user ON phpbb_notifications (user_id, notificat
Table: 'phpbb_oauth_accounts'
*/
CREATE TABLE phpbb_oauth_accounts (
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
provider varchar(255) DEFAULT '' NOT NULL,
oauth_provider_id varchar(4000) DEFAULT '' NOT NULL,
PRIMARY KEY (user_id, provider)
@@ -672,7 +672,7 @@ CREATE TABLE phpbb_oauth_accounts (
Table: 'phpbb_oauth_tokens'
*/
CREATE TABLE phpbb_oauth_tokens (
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
session_id char(32) DEFAULT '' NOT NULL,
provider varchar(255) DEFAULT '' NOT NULL,
oauth_token TEXT DEFAULT '' NOT NULL
@@ -686,7 +686,7 @@ CREATE INDEX phpbb_oauth_tokens_provider ON phpbb_oauth_tokens (provider);
*/
CREATE TABLE phpbb_poll_options (
poll_option_id INT2 DEFAULT '0' NOT NULL,
- topic_id INT4 DEFAULT '0' NOT NULL CHECK (topic_id >= 0),
+ topic_id INT4 DEFAULT '0' NOT NULL,
poll_option_text varchar(4000) DEFAULT '' NOT NULL,
poll_option_total INT4 DEFAULT '0' NOT NULL CHECK (poll_option_total >= 0)
);
@@ -698,7 +698,7 @@ CREATE INDEX phpbb_poll_options_topic_id ON phpbb_poll_options (topic_id);
Table: 'phpbb_poll_votes'
*/
CREATE TABLE phpbb_poll_votes (
- topic_id INT4 DEFAULT '0' NOT NULL CHECK (topic_id >= 0),
+ topic_id INT4 DEFAULT '0' NOT NULL,
poll_option_id INT2 DEFAULT '0' NOT NULL,
vote_user_id INT4 DEFAULT '0' NOT NULL CHECK (vote_user_id >= 0),
vote_user_ip varchar(40) DEFAULT '' NOT NULL
@@ -715,7 +715,7 @@ CREATE SEQUENCE phpbb_posts_seq;
CREATE TABLE phpbb_posts (
post_id INT4 DEFAULT nextval('phpbb_posts_seq'),
- topic_id INT4 DEFAULT '0' NOT NULL CHECK (topic_id >= 0),
+ topic_id INT4 DEFAULT '0' NOT NULL,
forum_id INT4 DEFAULT '0' NOT NULL CHECK (forum_id >= 0),
poster_id INT4 DEFAULT '0' NOT NULL CHECK (poster_id >= 0),
icon_id INT4 DEFAULT '0' NOT NULL CHECK (icon_id >= 0),
@@ -797,7 +797,7 @@ CREATE SEQUENCE phpbb_privmsgs_folder_seq;
CREATE TABLE phpbb_privmsgs_folder (
folder_id INT4 DEFAULT nextval('phpbb_privmsgs_folder_seq'),
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
folder_name varchar(255) DEFAULT '' NOT NULL,
pm_count INT4 DEFAULT '0' NOT NULL CHECK (pm_count >= 0),
PRIMARY KEY (folder_id)
@@ -812,7 +812,7 @@ CREATE SEQUENCE phpbb_privmsgs_rules_seq;
CREATE TABLE phpbb_privmsgs_rules (
rule_id INT4 DEFAULT nextval('phpbb_privmsgs_rules_seq'),
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
rule_check INT4 DEFAULT '0' NOT NULL CHECK (rule_check >= 0),
rule_connection INT4 DEFAULT '0' NOT NULL CHECK (rule_connection >= 0),
rule_string varchar(255) DEFAULT '' NOT NULL,
@@ -830,7 +830,7 @@ CREATE INDEX phpbb_privmsgs_rules_user_id ON phpbb_privmsgs_rules (user_id);
*/
CREATE TABLE phpbb_privmsgs_to (
msg_id INT4 DEFAULT '0' NOT NULL CHECK (msg_id >= 0),
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
author_id INT4 DEFAULT '0' NOT NULL CHECK (author_id >= 0),
pm_deleted INT2 DEFAULT '0' NOT NULL CHECK (pm_deleted >= 0),
pm_new INT2 DEFAULT '1' NOT NULL CHECK (pm_new >= 0),
@@ -882,7 +882,7 @@ CREATE INDEX phpbb_profile_fields_fld_ordr ON phpbb_profile_fields (field_order)
Table: 'phpbb_profile_fields_data'
*/
CREATE TABLE phpbb_profile_fields_data (
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
pf_phpbb_location varchar(255) DEFAULT '' NOT NULL,
pf_phpbb_interests varchar(4000) DEFAULT '' NOT NULL,
pf_phpbb_occupation varchar(4000) DEFAULT '' NOT NULL,
@@ -939,9 +939,9 @@ CREATE SEQUENCE phpbb_reports_seq;
CREATE TABLE phpbb_reports (
report_id INT4 DEFAULT nextval('phpbb_reports_seq'),
reason_id INT2 DEFAULT '0' NOT NULL CHECK (reason_id >= 0),
- post_id INT4 DEFAULT '0' NOT NULL CHECK (post_id >= 0),
+ post_id INT4 DEFAULT '0' NOT NULL,
pm_id INT4 DEFAULT '0' NOT NULL CHECK (pm_id >= 0),
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
user_notify INT2 DEFAULT '0' NOT NULL CHECK (user_notify >= 0),
report_closed INT2 DEFAULT '0' NOT NULL CHECK (report_closed >= 0),
report_time INT4 DEFAULT '0' NOT NULL CHECK (report_time >= 0),
@@ -1004,7 +1004,7 @@ CREATE INDEX phpbb_search_wordlist_wrd_cnt ON phpbb_search_wordlist (word_count)
Table: 'phpbb_search_wordmatch'
*/
CREATE TABLE phpbb_search_wordmatch (
- post_id INT4 DEFAULT '0' NOT NULL CHECK (post_id >= 0),
+ post_id INT4 DEFAULT '0' NOT NULL,
word_id INT4 DEFAULT '0' NOT NULL CHECK (word_id >= 0),
title_match INT2 DEFAULT '0' NOT NULL CHECK (title_match >= 0)
);
@@ -1042,7 +1042,7 @@ CREATE INDEX phpbb_sessions_session_fid ON phpbb_sessions (session_forum_id);
*/
CREATE TABLE phpbb_sessions_keys (
key_id char(32) DEFAULT '' NOT NULL,
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
last_ip varchar(40) DEFAULT '' NOT NULL,
last_login INT4 DEFAULT '0' NOT NULL CHECK (last_login >= 0),
PRIMARY KEY (key_id, user_id)
@@ -1175,8 +1175,8 @@ CREATE INDEX phpbb_topics_fid_time_moved ON phpbb_topics (forum_id, topic_last_p
Table: 'phpbb_topics_track'
*/
CREATE TABLE phpbb_topics_track (
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
- topic_id INT4 DEFAULT '0' NOT NULL CHECK (topic_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
+ topic_id INT4 DEFAULT '0' NOT NULL,
forum_id INT4 DEFAULT '0' NOT NULL CHECK (forum_id >= 0),
mark_time INT4 DEFAULT '0' NOT NULL CHECK (mark_time >= 0),
PRIMARY KEY (user_id, topic_id)
@@ -1189,8 +1189,8 @@ CREATE INDEX phpbb_topics_track_forum_id ON phpbb_topics_track (forum_id);
Table: 'phpbb_topics_posted'
*/
CREATE TABLE phpbb_topics_posted (
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
- topic_id INT4 DEFAULT '0' NOT NULL CHECK (topic_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
+ topic_id INT4 DEFAULT '0' NOT NULL,
topic_posted INT2 DEFAULT '0' NOT NULL CHECK (topic_posted >= 0),
PRIMARY KEY (user_id, topic_id)
);
@@ -1200,8 +1200,8 @@ CREATE TABLE phpbb_topics_posted (
Table: 'phpbb_topics_watch'
*/
CREATE TABLE phpbb_topics_watch (
- topic_id INT4 DEFAULT '0' NOT NULL CHECK (topic_id >= 0),
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
+ topic_id INT4 DEFAULT '0' NOT NULL,
+ user_id INT4 DEFAULT '0' NOT NULL,
notify_status INT2 DEFAULT '0' NOT NULL CHECK (notify_status >= 0)
);
@@ -1215,7 +1215,7 @@ CREATE INDEX phpbb_topics_watch_notify_stat ON phpbb_topics_watch (notify_status
CREATE TABLE phpbb_user_notifications (
item_type varchar(255) DEFAULT '' NOT NULL,
item_id INT4 DEFAULT '0' NOT NULL CHECK (item_id >= 0),
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
method varchar(255) DEFAULT '' NOT NULL,
notify INT2 DEFAULT '1' NOT NULL CHECK (notify >= 0)
);
@@ -1226,7 +1226,7 @@ CREATE TABLE phpbb_user_notifications (
*/
CREATE TABLE phpbb_user_group (
group_id INT4 DEFAULT '0' NOT NULL CHECK (group_id >= 0),
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
group_leader INT2 DEFAULT '0' NOT NULL CHECK (group_leader >= 0),
user_pending INT2 DEFAULT '1' NOT NULL CHECK (user_pending >= 0)
);
@@ -1328,8 +1328,8 @@ CREATE SEQUENCE phpbb_warnings_seq;
CREATE TABLE phpbb_warnings (
warning_id INT4 DEFAULT nextval('phpbb_warnings_seq'),
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
- post_id INT4 DEFAULT '0' NOT NULL CHECK (post_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
+ post_id INT4 DEFAULT '0' NOT NULL,
log_id INT4 DEFAULT '0' NOT NULL CHECK (log_id >= 0),
warning_time INT4 DEFAULT '0' NOT NULL CHECK (warning_time >= 0),
PRIMARY KEY (warning_id)
@@ -1353,7 +1353,7 @@ CREATE TABLE phpbb_words (
Table: 'phpbb_zebra'
*/
CREATE TABLE phpbb_zebra (
- user_id INT4 DEFAULT '0' NOT NULL CHECK (user_id >= 0),
+ user_id INT4 DEFAULT '0' NOT NULL,
zebra_id INT4 DEFAULT '0' NOT NULL CHECK (zebra_id >= 0),
friend INT2 DEFAULT '0' NOT NULL CHECK (friend >= 0),
foe INT2 DEFAULT '0' NOT NULL CHECK (foe >= 0),