wiki.techinc.nl/maintenance/archives/patch-redirect-rd_title-varbinary.sql
Amir Sarabadani a531f4ad0b Migrate redirect table to abstract schema
Changing "varchar() binary" to varbinary in MySQL and Sqlite for two
columns: rd_title and rd_fragment.

Fixing db drifts of schema in Postgres:
 - Setting the data type of rd_namespace from SMALLINT and setting its
   default
 - Set empty string as default of rd_title
 - Changing datatype of rd_interwiki to varchar (PG supports that)

Bug: T164898
Bug: T230428
Change-Id: I9563792b1fc0ce5f3de78c08703a768a0c2e99d0
2020-08-13 00:37:45 +02:00

2 lines
127 B
SQL

ALTER TABLE /*_*/redirect MODIFY rd_title VARBINARY(255) NOT NULL default '',
MODIFY rd_fragment VARBINARY(255) default NULL;