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

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

Bug: T164898
Bug: T230428
Change-Id: I4af8202742a1826e6b3f8ff36cf4f7b612b82690
2020-08-19 13:58:00 +02:00

1 line
79 B
SQL

ALTER TABLE /*_*/pagelinks MODIFY pl_title VARBINARY(255) NOT NULL default '';