wiki.techinc.nl/maintenance/archives/patch-templatelinks-tl_title-varbinary.sql
Amir Sarabadani aecc67b83d Migrate templatelinks table to abstract schema
In order to migrate MySQL and Sqlite to abstract schema changed the
tl_title data type from varchar binary to varbinary. This wouldn't
affect production.

For migrating Postgres:
 - Dropping foreign key on tl_from
 - Changing data type of tl_namespace from SMALLINT to INT and setting
   its default
 - Setting default of empty string for tl_title
 - Completely rewriting indexes to make it synced with MySQL

Bug: T164898
Bug: T230428
Change-Id: Idbb65d870f58f7146b9c8bd860e6530bef1e0f12
2020-08-22 15:23:03 +02:00

1 line
83 B
SQL

ALTER TABLE /*_*/templatelinks MODIFY tl_title VARBINARY(255) NOT NULL default '';