diff --git a/nexus/catalog/migrations/V12_slot_size.sql b/nexus/catalog/migrations/V12_slot_size.sql new file mode 100644 index 0000000000..fe56cba983 --- /dev/null +++ b/nexus/catalog/migrations/V12_slot_size.sql @@ -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) +); diff --git a/nexus/catalog/migrations/V5__monitoring_init.sql b/nexus/catalog/migrations/V5__monitoring_init.sql index 43acf3c1bb..b6e1744cd2 100644 --- a/nexus/catalog/migrations/V5__monitoring_init.sql +++ b/nexus/catalog/migrations/V5__monitoring_init.sql @@ -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) -); \ No newline at end of file +