Add ip_changes to postgres/tables.sql
Follow-up Ic11c64813ee04e8520771bfa156f8e51404273e7 Bug: T177258 Change-Id: I69a278c1928ed91ef5cbe5b66e590eef629a2981
This commit is contained in:
parent
870103526c
commit
70951d1971
1 changed files with 11 additions and 0 deletions
|
|
@ -158,6 +158,17 @@ CREATE TABLE revision_comment_temp (
|
|||
);
|
||||
CREATE UNIQUE INDEX revcomment_rev ON revision_comment_temp (revcomment_rev);
|
||||
|
||||
CREATE SEQUENCE ip_changes_ipc_rev_id_seq;
|
||||
|
||||
CREATE TABLE ip_changes (
|
||||
ipc_rev_id INTEGER PRIMARY KEY NOT NULL DEFAULT nextval('ip_changes_ipc_rev_id_seq'),
|
||||
ipc_rev_timestamp TIMESTAMPTZ NOT NULL,
|
||||
ipc_hex BYTEA NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
CREATE INDEX ipc_rev_timestamp ON ip_changes (ipc_rev_timestamp);
|
||||
CREATE INDEX ipc_hex_time ON ip_changes (ipc_hex,ipc_rev_timestamp);
|
||||
|
||||
CREATE SEQUENCE text_old_id_seq;
|
||||
CREATE TABLE pagecontent ( -- replaces reserved word 'text'
|
||||
old_id INTEGER NOT NULL PRIMARY KEY DEFAULT nextval('text_old_id_seq'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue