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
10 lines
No EOL
324 B
SQL
10 lines
No EOL
324 B
SQL
--
|
|
-- Normalization table for content model names
|
|
--
|
|
CREATE TABLE /*_*/content_models (
|
|
model_id smallint PRIMARY KEY AUTO_INCREMENT,
|
|
model_name varbinary(64) NOT NULL
|
|
) /*$wgDBTableOptions*/;
|
|
|
|
-- Index for looking of the internal ID of for a name
|
|
CREATE UNIQUE INDEX /*i*/model_name ON /*_*/content_models (model_name); |