- schema change to allow tl_namespace and tl_title being empty This is done by removing them from primary key. They don't need to be nullable as they have default value. - Make sure with WRITE_NEW, updater avoids writing to the old columns Bug: T306674 Change-Id: I2b8a29043e952060e7a79b6a7a3d647d48cd16fb
10 lines
No EOL
488 B
SQL
10 lines
No EOL
488 B
SQL
-- This file is automatically generated using maintenance/generateSchemaChangeSql.php.
|
|
-- Source: maintenance/abstractSchemaChanges/patch-templatelinks-tl_title-nullable.json
|
|
-- Do not modify this file directly.
|
|
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
|
|
ALTER TABLE /*_*/templatelinks
|
|
DROP PRIMARY KEY;
|
|
ALTER TABLE /*_*/templatelinks
|
|
CHANGE tl_target_id tl_target_id BIGINT UNSIGNED NOT NULL;
|
|
ALTER TABLE /*_*/templatelinks
|
|
ADD PRIMARY KEY (tl_from, tl_target_id); |