X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Ftables.sql;h=1813f6cdf068e82d157dfd1dbfaa2caaab927156;hb=fd74508e93859a5ab6acbd8259f0dcac7a6b1bd9;hp=d6ef40c73bab92abb2eb254d1b621f5cec468c68;hpb=3afdb703b6e5f6f6a6b01327b0b06d4436a4c200;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/tables.sql b/maintenance/tables.sql index d6ef40c73b..1813f6cdf0 100644 --- a/maintenance/tables.sql +++ b/maintenance/tables.sql @@ -213,7 +213,7 @@ CREATE INDEX /*i*/un_user_ip ON /*_*/user_newtalk (user_ip); -- CREATE TABLE /*_*/user_properties ( -- Foreign key to user.user_id - up_user int NOT NULL, + up_user int unsigned NOT NULL, -- Name of the option being saved. This is indexed for bulk lookup. up_property varbinary(255) NOT NULL, @@ -231,7 +231,7 @@ CREATE INDEX /*i*/user_properties_property ON /*_*/user_properties (up_property) -- CREATE TABLE /*_*/bot_passwords ( -- User ID obtained from CentralIdLookup. - bp_user int NOT NULL, + bp_user int unsigned NOT NULL, -- Application identifier bp_app_id varbinary(32) NOT NULL, @@ -1640,7 +1640,7 @@ CREATE TABLE /*_*/page_restrictions ( -- Whether or not to cascade the protection down to pages transcluded. pr_cascade tinyint NOT NULL, -- Field for future support of per-user restriction. - pr_user int NULL, + pr_user int unsigned NULL, -- Field for time-limited protection. pr_expiry varbinary(14) NULL ) /*$wgDBTableOptions*/; @@ -1692,9 +1692,9 @@ CREATE TABLE /*_*/change_tag ( -- RCID for the change ct_rc_id int NULL, -- LOGID for the change - ct_log_id int NULL, + ct_log_id int unsigned NULL, -- REVID for the change - ct_rev_id int NULL, + ct_rev_id int unsigned NULL, -- Tag applied ct_tag varchar(255) NOT NULL, -- Parameters for the tag, presently unused @@ -1715,9 +1715,9 @@ CREATE TABLE /*_*/tag_summary ( -- RCID for the change ts_rc_id int NULL, -- LOGID for the change - ts_log_id int NULL, + ts_log_id int unsigned NULL, -- REVID for the change - ts_rev_id int NULL, + ts_rev_id int unsigned NULL, -- Comma-separated list of tags ts_tags blob NOT NULL ) /*$wgDBTableOptions*/; @@ -1738,9 +1738,9 @@ CREATE TABLE /*_*/l10n_cache ( -- Cache key lc_key varchar(255) NOT NULL, -- Value - lc_value mediumblob NOT NULL + lc_value mediumblob NOT NULL, + PRIMARY KEY (lc_lang, lc_key) ) /*$wgDBTableOptions*/; -CREATE INDEX /*i*/lc_lang_key ON /*_*/l10n_cache (lc_lang, lc_key); -- Table caching which local files a module depends on that aren't -- registered directly, used for fast retrieval of file dependency.