* PostgresField now reports column default value * DatabasePostgres::indexAttributes reports index details * Perform schema update in one transaction With this change we can sucessfully update MediaWiki 1.7.3 schema to trunk^Wmaster Patch set 2: Rebased against master. PLEASE check carefully to make sure I got those conflicted files right. Conflicts: includes/db/DatabasePostgres.php includes/installer/PostgresUpdater.php Change-Id: Iebb6855e8f6f44470bbb1dc5ab9ac1abb513adfe
15 lines
478 B
SQL
15 lines
478 B
SQL
|
|
CREATE SEQUENCE category_cat_id_seq;
|
|
|
|
CREATE TABLE category (
|
|
cat_id INTEGER NOT NULL PRIMARY KEY DEFAULT nextval('category_cat_id_seq'),
|
|
cat_title TEXT NOT NULL,
|
|
cat_pages INTEGER NOT NULL DEFAULT 0,
|
|
cat_subcats INTEGER NOT NULL DEFAULT 0,
|
|
cat_files INTEGER NOT NULL DEFAULT 0,
|
|
cat_hidden SMALLINT NOT NULL DEFAULT 0
|
|
);
|
|
|
|
CREATE UNIQUE INDEX category_title ON category(cat_title);
|
|
CREATE INDEX category_pages ON category(cat_pages);
|
|
|