wiki.techinc.nl/maintenance/archives/patch-templatelinks-tl_title-nullable.sql

10 lines
488 B
MySQL
Raw Normal View History

-- 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);