Skip to content

Commit c24129f

Browse files
store: Rename materialized view to avoid name clash
Signed-off-by: Maksim Dimitrov <[email protected]>
1 parent 544d698 commit c24129f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

store/postgres/migrations/2025-10-30-094807-0000_table_stats_view/down.sql

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROP MATERIALIZED VIEW IF EXISTS info.entity_version_stats;

store/postgres/migrations/2025-10-30-094807-0000_table_stats_view/up.sql renamed to store/postgres/migrations/2025-12-18-104956-0000_create_entity_version_stats_view/up.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CREATE MATERIALIZED VIEW info.table_stats AS
1+
CREATE MATERIALIZED VIEW info.entity_version_stats AS
22
WITH table_info AS (
33
SELECT
44
s.schemaname AS schema_name,

store/postgres/src/deployment_store.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ impl DeploymentStore {
788788
SELECT
789789
stats.subgraph,
790790
stats.table_name
791-
FROM info.table_stats AS stats
791+
FROM info.entity_version_stats AS stats
792792
LEFT JOIN subgraphs.table_stats ts
793793
ON ts.deployment = stats.deployment
794794
AND ts.table_name = stats.table_name
@@ -1868,7 +1868,7 @@ impl DeploymentStore {
18681868
"info.table_sizes",
18691869
"info.subgraph_sizes",
18701870
"info.chain_sizes",
1871-
"info.table_stats",
1871+
"info.entity_version_stats",
18721872
];
18731873
let mut conn = store.pool.get_permitted().await?;
18741874
for view in VIEWS {

0 commit comments

Comments
 (0)