wiki.techinc.nl/maintenance/archives/patch-page-page_title-varbinary.sql
Ammar Abdulhamid 6a3aa5b5a2 Migrate page to abstract schema
Postgres:
 - Change page_namespace from smallint to int
 - Change page_random from numeric with arbitrary precision to float
 - Make page_touched not nullable

MySQL/SQLite:
 - Change datatype of page_title from varchar (with binary collation)
   to varbinary(255)
 - Drop default empty string from timestamp field of page_touched

Bug: T230428
Bug: T164898
Change-Id: Ibdaf332ea1da309d31d35a6ebbc1b8fefced335e
2021-03-21 12:07:12 +01:00

1 line
65 B
SQL

ALTER TABLE /*_*/page MODIFY page_title VARBINARY(255) NOT NULL;