Merge "Correct recent schema changes for MSSQL, Oracle"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 27 Jul 2018 08:30:49 +0000 (08:30 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 27 Jul 2018 08:30:49 +0000 (08:30 +0000)
1  2 
includes/installer/MssqlUpdater.php
maintenance/mssql/tables.sql

Simple merge
@@@ -1358,13 -1361,13 +1358,13 @@@ CREATE TABLE /*_*/protected_titles 
    pt_title nvarchar(255) NOT NULL,
    pt_user int REFERENCES /*_*/mwuser(user_id) ON DELETE SET NULL,
    pt_reason nvarchar(255) CONSTRAINT DF_pt_reason DEFAULT '',
-   pt_reason_id bigint unsigned NOT NULL CONSTRAINT DF_pt_reason_id DEFAULT 0 CONSTRAINT FK_pt_reason_id FOREIGN KEY REFERENCES /*_*/comment(comment_id),
+   pt_reason_id bigint NOT NULL CONSTRAINT DF_pt_reason_id DEFAULT 0 CONSTRAINT FK_pt_reason_id FOREIGN KEY REFERENCES /*_*/comment(comment_id),
    pt_timestamp varchar(14) NOT NULL,
    pt_expiry varchar(14) NOT NULL,
 -  pt_create_perm nvarchar(60) NOT NULL
 +  pt_create_perm nvarchar(60) NOT NULL,
 +  CONSTRAINT PK_protected_titles PRIMARY KEY(pt_namespace,pt_title)
  );
  
 -CREATE UNIQUE INDEX /*i*/pt_namespace_title ON /*_*/protected_titles (pt_namespace,pt_title);
  CREATE INDEX /*i*/pt_timestamp ON /*_*/protected_titles (pt_timestamp);