X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fmssql%2Ftables.sql;h=256ee364d6c3d948273f1b9428ce5daaee1193e1;hb=fba48c6dae69b7163580d936095b7dd16c9b3644;hp=ea087a6012ee714760ec23999fb46ab845ebc5e2;hpb=bb8608c98a3d677d8557dd7056a7434c7c38c055;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/mssql/tables.sql b/maintenance/mssql/tables.sql index ea087a6012..256ee364d6 100644 --- a/maintenance/mssql/tables.sql +++ b/maintenance/mssql/tables.sql @@ -577,13 +577,13 @@ CREATE TABLE /*_*/image ( img_media_type varchar(16) default null, -- major part of a MIME media type as defined by IANA - -- see http://www.iana.org/assignments/media-types/ + -- see https://www.iana.org/assignments/media-types/ img_major_mime varchar(16) not null default 'unknown', -- minor part of a MIME media type as defined by IANA -- the minor parts are not required to adher to any standard -- but should be consistent throughout the database - -- see http://www.iana.org/assignments/media-types/ + -- see https://www.iana.org/assignments/media-types/ img_minor_mime nvarchar(100) NOT NULL default 'unknown', -- Description field as entered by the uploader. @@ -1193,6 +1193,7 @@ CREATE TABLE /*_*/updatelog ( -- A table to track tags for revisions, logs and recent changes. CREATE TABLE /*_*/change_tag ( + ct_id int NOT NULL PRIMARY KEY IDENTITY, -- RCID for the change ct_rc_id int NULL REFERENCES /*_*/recentchanges(rc_id), -- LOGID for the change @@ -1215,6 +1216,7 @@ CREATE INDEX /*i*/change_tag_tag_id ON /*_*/change_tag (ct_tag,ct_rc_id,ct_rev_i -- Rollup table to pull a LIST of tags simply without ugly GROUP_CONCAT -- that only works on MySQL 4.1+ CREATE TABLE /*_*/tag_summary ( + ts_id int NOT NULL PRIMARY KEY IDENTITY, -- RCID for the change ts_rc_id int NULL REFERENCES /*_*/recentchanges(rc_id), -- LOGID for the change