wiki.techinc.nl/maintenance/archives/patch-slot_roles.sql
daniel 943c724198 MCR database schema
Schema additions/updates for MySQL, SQLite, PostgreSQL, MSSQL
and Oracle to add new tables:

* content
* content_models
* slots
* slot_roles

See also https://www.mediawiki.org/wiki/Multi-Content_Revisions/Database_Schema

Bug: T174028
Change-Id: I30a3a9834d54d0e6957553d91908b2b73b2c802f
2017-12-23 17:43:09 -05:00

10 lines
No EOL
303 B
SQL

--
-- Normalization table for role names
--
CREATE TABLE /*_*/slot_roles (
role_id smallint PRIMARY KEY AUTO_INCREMENT,
role_name varbinary(64) NOT NULL
) /*$wgDBTableOptions*/;
-- Index for looking of the internal ID of for a name
CREATE UNIQUE INDEX /*i*/role_name ON /*_*/slot_roles (role_name);