wiki.techinc.nl/maintenance/archives/patch-user_table-updates.sql
Ammarpad c697406d3f Prepare for migrating user to abstract schema
Split off to make the migration patch smaller

Postgres:
 - Make user_touched not nullable

MySQL/SQlite
 - Change user_name from varchar to varbinary
 - Change user_name from varchar to varbinary
 - Drop empty string default from user_touched (Timestamp field)

Bug: T230428
Bug: T164898
Change-Id: I8fe0b1fb2af3149a2e2fdae7bb056ac6f863b09c
2021-03-28 09:55:07 +01:00

8 lines
No EOL
474 B
SQL

-- This file is automatically generated using maintenance/generateSchemaChangeSql.php.
-- Source: maintenance/abstractSchemaChanges/patch-user_table-updates.json
-- Do not modify this file directly.
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
ALTER TABLE /*_*/user
CHANGE user_name user_name VARBINARY(255) DEFAULT '' NOT NULL,
CHANGE user_real_name user_real_name VARBINARY(255) DEFAULT '' NOT NULL,
CHANGE user_touched user_touched BINARY(14) NOT NULL;