diff options
Diffstat (limited to 'www/wiki/maintenance/postgres/archives/patch-ip_changes.sql')
-rw-r--r-- | www/wiki/maintenance/postgres/archives/patch-ip_changes.sql | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/www/wiki/maintenance/postgres/archives/patch-ip_changes.sql b/www/wiki/maintenance/postgres/archives/patch-ip_changes.sql new file mode 100644 index 00000000..64cc0d71 --- /dev/null +++ b/www/wiki/maintenance/postgres/archives/patch-ip_changes.sql @@ -0,0 +1,10 @@ +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); |