Follows-up Ic11c64813ee04e8520771bfa156f8e51404273e7 Bug: T181672 Change-Id: I58fe5edb1e7656773271634f702ed044c6036497
10 lines
392 B
SQL
10 lines
392 B
SQL
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);
|