We need to drop these columns and we need to make them take default values so we can issue write queries without these columns. Also noting that MySQL prior to 8.0 can't set default values to blob columns making this way more complicated than it should be but MariaDB can set them (https://mariadb.com/kb/en/blob/). We also made these columns nullable to make this work in MySQL. Bug: T341828 Change-Id: I0d60742b6ce7adf642393ee00b66aa539b76dfc1
8 lines
No EOL
450 B
SQL
8 lines
No EOL
450 B
SQL
-- This file is automatically generated using maintenance/generateSchemaChangeSql.php.
|
|
-- Source: maintenance/abstractSchemaChanges/patch-externallinks-el_to_default.json
|
|
-- Do not modify this file directly.
|
|
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
|
|
ALTER TABLE /*_*/externallinks
|
|
CHANGE el_to el_to BLOB DEFAULT NULL,
|
|
CHANGE el_index el_index BLOB DEFAULT NULL,
|
|
CHANGE el_index_60 el_index_60 VARBINARY(60) DEFAULT '' NOT NULL; |