aboutsummaryrefslogtreecommitdiffstats
path: root/sql/postgres/patch-categorylinks-target_id.sql
blob: 53cfb4a9229090ea85edcbe376dfa044953ba1cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
-- This file is automatically generated using maintenance/generateSchemaChangeSql.php.
-- Source: sql/abstractSchemaChanges/patch-categorylinks-target_id.json
-- Do not modify this file directly.
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
ALTER TABLE categorylinks
  ADD cl_collation_id SMALLINT DEFAULT 0 NOT NULL;
ALTER TABLE categorylinks
  ADD cl_target_id BIGINT DEFAULT NULL;

CREATE INDEX cl_sortkey_id ON categorylinks (
  cl_target_id, cl_type, cl_sortkey,
  cl_from
);