Skip to content

Commit

Permalink
use new migration file instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Dec 7, 2023
1 parent 8699443 commit c2d919c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
10 changes: 10 additions & 0 deletions nexus/catalog/migrations/V12_slot_size.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CREATE TABLE IF NOT EXISTS peerdb_stats.peer_slot_size (
slot_name TEXT NOT NULL,
peer_name TEXT NOT NULL,
redo_lsn TEXT,
restart_lsn TEXT,
confirmed_flush_lsn TEXT,
slot_size BIGINT,
updated_at
PRIMARY KEY (slot_name, peer_name)
);
10 changes: 1 addition & 9 deletions nexus/catalog/migrations/V5__monitoring_init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,4 @@ CREATE TABLE IF NOT EXISTS peerdb_stats.qrep_partitions (
metadata JSONB
);

CREATE TABLE IF NOT EXISTS peerdb_stats.peer_slot_size (
slot_name TEXT NOT NULL,
peer_name TEXT NOT NULL,
redo_lsn TEXT,
restart_lsn TEXT,
confirmed_flush_lsn TEXT,
slot_size BIGINT,
PRIMARY KEY (slot_name, peer_name)
);

0 comments on commit c2d919c

Please sign in to comment.