* 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
9 lines
270 B
SQL
9 lines
270 B
SQL
|
|
CREATE TABLE log_search (
|
|
ls_field TEXT NOT NULL,
|
|
ls_value TEXT NOT NULL,
|
|
ls_log_id INTEGER NOT NULL DEFAULT 0
|
|
);
|
|
|
|
ALTER TABLE log_search ADD CONSTRAINT log_search_pkey PRIMARY KEY(ls_field, ls_value, ls_log_id);
|
|
CREATE INDEX ls_log_id ON log_search (ls_log_id);
|