wiki.techinc.nl/maintenance/archives/patch-slot_roles-role_id.sql
Amir Sarabadani a2a0088d6b Migrate slot_roles and content_models to abstract schema
These tables don't have drift between MySQL and Postgres but their
primary keys don't have explicit "NOT NULL" statement making them
nullable in sqlite. Fixing this drift.

Also changing the PK fields of these two tables from smallint to int,
given that PG would be complicated with smallint auto_increment PKs

Bug: T230428
Bug: T258366
Change-Id: Icf6ce044eaf0f09b1a2bdd8a1f618cef1e0415bf
2020-11-22 00:24:08 +01:00

2 lines
74 B
SQL

ALTER TABLE /*_*/slot_roles
MODIFY role_id INT AUTO_INCREMENT NOT NULL;