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
7 lines
No EOL
267 B
SQL
7 lines
No EOL
267 B
SQL
CREATE SEQUENCE content_models_model_id_seq;
|
|
CREATE TABLE content_models (
|
|
model_id SMALLINT NOT NULL PRIMARY KEY DEFAULT nextval('content_models_model_id_seq'),
|
|
model_name TEXT NOT NULL
|
|
);
|
|
|
|
CREATE UNIQUE INDEX model_name ON content_models (model_name); |