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

For migrating Postgres:
 - Dropping foreign key on il_from
 - Setting default of empty string for il_to
 - Completely rewriting indexes to make it synced with MySQL

Bug: T164898
Bug: T230428
Change-Id: I59f0d0a56d938a168bf1c7de2a1be47f15d1add1
2020-08-22 22:59:00 +02:00

1 line
77 B
SQL

ALTER TABLE /*_*/imagelinks MODIFY il_to VARBINARY(255) NOT NULL default '';