wiki.techinc.nl/maintenance/postgres/archives/patch-externallinks-el_to_default.sql
Amir Sarabadani 080883da09 Schema: Set default or nullable to three columns of externallinks
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
2023-07-18 11:59:09 +02:00

14 lines
No EOL
557 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 ALTER el_to
SET DEFAULT '';
ALTER TABLE externallinks ALTER el_to
DROP NOT NULL;
ALTER TABLE externallinks ALTER el_index
SET DEFAULT '';
ALTER TABLE externallinks ALTER el_index
DROP NOT NULL;
ALTER TABLE externallinks ALTER el_index_60
SET DEFAULT '';