From 72d9124cb5d9a46a85426a76717cefdaa5a6886c Mon Sep 17 00:00:00 2001 From: Adrian Swanberg Date: Tue, 8 Oct 2024 14:19:15 -0700 Subject: [PATCH 1/5] chore(billing): Add materialized views that will make it easier to do billing calculations. --- .../migrations/007_stats_views.down.sql | 11 ++ .../migrations/007_stats_views.up.sql | 138 ++++++++++++++++++ 2 files changed, 149 insertions(+) create mode 100644 weave/trace_server/migrations/007_stats_views.down.sql create mode 100644 weave/trace_server/migrations/007_stats_views.up.sql diff --git a/weave/trace_server/migrations/007_stats_views.down.sql b/weave/trace_server/migrations/007_stats_views.down.sql new file mode 100644 index 00000000000..965a671ae8d --- /dev/null +++ b/weave/trace_server/migrations/007_stats_views.down.sql @@ -0,0 +1,11 @@ +DROP TABLE IF EXISTS weave_trace_db.calls_merged_stats; +DROP VIEW IF EXISTS weave_trace_db.calls_merged_stats_view; + +DROP TABLE IF EXISTS weave_trace_db.object_versions_stats; +DROP VIEW IF EXISTS weave_trace_db.object_versions_stats_view; + +DROP TABLE IF EXISTS weave_trace_db.table_rows_stats; +DROP VIEW IF EXISTS weave_trace_db.table_rows_stats_view; + +DROP TABLE IF EXISTS weave_trace_db.files_stats; +DROP VIEW IF EXISTS weave_trace_db.files_stats_view; diff --git a/weave/trace_server/migrations/007_stats_views.up.sql b/weave/trace_server/migrations/007_stats_views.up.sql new file mode 100644 index 00000000000..908900f38ca --- /dev/null +++ b/weave/trace_server/migrations/007_stats_views.up.sql @@ -0,0 +1,138 @@ +CREATE TABLE files_stats +( + project_id String, + digest String, + chunk_index UInt32, + n_chunks SimpleAggregateFunction(any, UInt32), + name SimpleAggregateFunction(any, String), + size_bytes SimpleAggregateFunction(any, UInt64), + created_at SimpleAggregateFunction(min, DateTime64(3)), + updated_at SimpleAggregateFunction(max, DateTime64(3)) +) ENGINE = AggregatingMergeTree() +ORDER BY (project_id, digest, chunk_index); + +CREATE MATERIALIZED VIEW files_stats_view +TO weave_trace_db.files_stats +AS +SELECT + project_id, + digest, + chunk_index, + anySimpleState(n_chunks) as n_chunks, + anySimpleState(name) as name, + anySimpleState(length(val_bytes)) AS size_bytes, + minSimpleState(created_at) AS created_at, + maxSimpleState(created_at) AS updated_at +FROM weave_trace_db.files +GROUP BY + project_id, + digest, + chunk_index; + +CREATE TABLE table_rows_stats +( + project_id String, + digest String, + refs SimpleAggregateFunction(any, Array(String)), + size_bytes SimpleAggregateFunction(any, UInt64), + created_at SimpleAggregateFunction(min, DateTime64(3)), + updated_at SimpleAggregateFunction(max, DateTime64(3)) +) ENGINE = AggregatingMergeTree() +ORDER BY (project_id, digest); + +CREATE MATERIALIZED VIEW table_rows_stats_view +TO weave_trace_db.table_rows_stats +AS +SELECT + project_id, + digest, + anySimpleState(refs) as refs, + anySimpleState(length(val_dump)) AS size_bytes, + minSimpleState(created_at) AS created_at, + maxSimpleState(created_at) AS updated_at +FROM weave_trace_db.table_rows +GROUP BY + project_id, digest; + + +CREATE TABLE object_versions_stats +( + project_id String, + kind Enum('op', 'object'), + object_id String, + digest String, + base_object_class SimpleAggregateFunction(any, Nullable(String)), + refs SimpleAggregateFunction(any, Array(String)), + size_bytes SimpleAggregateFunction(any, UInt64), + created_at SimpleAggregateFunction(min, DateTime64(3)), + updated_at SimpleAggregateFunction(max, DateTime64(3)) +) ENGINE = AggregatingMergeTree() +ORDER BY (project_id, kind, object_id, digest); + +CREATE MATERIALIZED VIEW object_versions_stats_view +TO weave_trace_db.object_versions_stats +AS +SELECT + project_id, + kind, + object_id, + digest, + anySimpleState(base_object_class) AS base_object_class, + anySimpleState(refs) AS refs, + anySimpleState(length(val_dump)) AS size_bytes, + minSimpleState(created_at) AS created_at, + maxSimpleState(created_at) AS updated_at +FROM weave_trace_db.object_versions +GROUP BY + project_id, kind, object_id, digest; + +CREATE TABLE calls_merged_stats +( + project_id String, + id String, + trace_id SimpleAggregateFunction(any, Nullable(String)), + parent_id SimpleAggregateFunction(any, Nullable(String)), + op_name SimpleAggregateFunction(any, Nullable(String)), + started_at SimpleAggregateFunction(any, Nullable(DateTime64(3))), + attributes_size_bytes SimpleAggregateFunction(any, Nullable(UInt64)), + inputs_size_bytes SimpleAggregateFunction(any, Nullable(UInt64)), + input_refs SimpleAggregateFunction(groupArrayArray, Array(String)), + ended_at SimpleAggregateFunction(any, Nullable(DateTime64(3))), + output_size_bytes SimpleAggregateFunction(any, Nullable(UInt64)), + summary_size_bytes SimpleAggregateFunction(any, Nullable(UInt64)), + exception SimpleAggregateFunction(any, Nullable(String)), + output_refs SimpleAggregateFunction(groupArrayArray, Array(String)), + wb_user_id SimpleAggregateFunction(any, Nullable(String)), + wb_run_id SimpleAggregateFunction(any, Nullable(String)), + updated_at SimpleAggregateFunction(max, DateTime64(3)), + deleted_at SimpleAggregateFunction(any, Nullable(DateTime64(3))), + display_name AggregateFunction(argMax, Nullable(String), DateTime64(3)) +) ENGINE = AggregatingMergeTree() +ORDER BY (project_id, id); + +-- NOTE: This needs to be generally kept in sync with calls_merged. +CREATE MATERIALIZED VIEW calls_merged_stats_view +TO weave_trace_db.calls_merged_stats +AS +SELECT + project_id, + id, + anySimpleState(trace_id) as trace_id, + anySimpleState(parent_id) as parent_id, + anySimpleState(op_name) as op_name, + anySimpleState(started_at) as started_at, + anySimpleState(length(attributes_dump)) as attributes_size_bytes, + anySimpleState(length(inputs_dump)) as inputs_size_bytes, + anySimpleState(input_refs) as input_refs, + anySimpleState(ended_at) as ended_at, + anySimpleState(length(output_dump)) as output_size_bytes, + anySimpleState(length(summary_dump)) as summary_size_bytes, + anySimpleState(exception) as exception, + anySimpleState(output_refs) as output_refs, + anySimpleState(wb_user_id) as wb_user_id, + anySimpleState(wb_run_id) as wb_run_id, + anySimpleState(deleted_at) as deleted_at, + maxSimpleState(created_at) as updated_at, + argMaxSimpleState(display_name, created_at) as display_name +FROM weave_trace_db.call_parts +GROUP BY project_id, id; From 4f9cb7fc1e9686c7668990ce3bdb31afa54f3390 Mon Sep 17 00:00:00 2001 From: Adrian Swanberg Date: Wed, 9 Oct 2024 22:08:34 -0700 Subject: [PATCH 2/5] address comments --- .../migrations/007_stats_views.down.sql | 16 +++--- .../migrations/007_stats_views.up.sql | 49 +++++++++++++++---- 2 files changed, 48 insertions(+), 17 deletions(-) diff --git a/weave/trace_server/migrations/007_stats_views.down.sql b/weave/trace_server/migrations/007_stats_views.down.sql index 965a671ae8d..99c96637a50 100644 --- a/weave/trace_server/migrations/007_stats_views.down.sql +++ b/weave/trace_server/migrations/007_stats_views.down.sql @@ -1,11 +1,11 @@ -DROP TABLE IF EXISTS weave_trace_db.calls_merged_stats; -DROP VIEW IF EXISTS weave_trace_db.calls_merged_stats_view; +DROP TABLE IF EXISTS calls_merged_stats; +DROP VIEW IF EXISTS calls_merged_stats_view; -DROP TABLE IF EXISTS weave_trace_db.object_versions_stats; -DROP VIEW IF EXISTS weave_trace_db.object_versions_stats_view; +DROP TABLE IF EXISTS object_versions_stats; +DROP VIEW IF EXISTS object_versions_stats_view; -DROP TABLE IF EXISTS weave_trace_db.table_rows_stats; -DROP VIEW IF EXISTS weave_trace_db.table_rows_stats_view; +DROP TABLE IF EXISTS table_rows_stats; +DROP VIEW IF EXISTS table_rows_stats_view; -DROP TABLE IF EXISTS weave_trace_db.files_stats; -DROP VIEW IF EXISTS weave_trace_db.files_stats_view; +DROP TABLE IF EXISTS files_stats; +DROP VIEW IF EXISTS files_stats_view; diff --git a/weave/trace_server/migrations/007_stats_views.up.sql b/weave/trace_server/migrations/007_stats_views.up.sql index 908900f38ca..294977e6238 100644 --- a/weave/trace_server/migrations/007_stats_views.up.sql +++ b/weave/trace_server/migrations/007_stats_views.up.sql @@ -12,7 +12,7 @@ CREATE TABLE files_stats ORDER BY (project_id, digest, chunk_index); CREATE MATERIALIZED VIEW files_stats_view -TO weave_trace_db.files_stats +TO files_stats AS SELECT project_id, @@ -23,7 +23,7 @@ SELECT anySimpleState(length(val_bytes)) AS size_bytes, minSimpleState(created_at) AS created_at, maxSimpleState(created_at) AS updated_at -FROM weave_trace_db.files +FROM files GROUP BY project_id, digest, @@ -41,7 +41,7 @@ CREATE TABLE table_rows_stats ORDER BY (project_id, digest); CREATE MATERIALIZED VIEW table_rows_stats_view -TO weave_trace_db.table_rows_stats +TO table_rows_stats AS SELECT project_id, @@ -50,7 +50,7 @@ SELECT anySimpleState(length(val_dump)) AS size_bytes, minSimpleState(created_at) AS created_at, maxSimpleState(created_at) AS updated_at -FROM weave_trace_db.table_rows +FROM table_rows GROUP BY project_id, digest; @@ -70,7 +70,7 @@ CREATE TABLE object_versions_stats ORDER BY (project_id, kind, object_id, digest); CREATE MATERIALIZED VIEW object_versions_stats_view -TO weave_trace_db.object_versions_stats +TO object_versions_stats AS SELECT project_id, @@ -82,10 +82,41 @@ SELECT anySimpleState(length(val_dump)) AS size_bytes, minSimpleState(created_at) AS created_at, maxSimpleState(created_at) AS updated_at -FROM weave_trace_db.object_versions +FROM object_versions GROUP BY project_id, kind, object_id, digest; +CREATE TABLE feedback_stats +( + project_id String, + weave_ref String, + wb_user_id String, + id String, + creator SimpleAggregateFunction(any, Nullable(String)), + created_at SimpleAggregateFunction(min, DateTime64(3)), + updated_at SimpleAggregateFunction(max, DateTime64(3)), + feedback_type SimpleAggregateFunction(any, String), + payload_size_bytes SimpleAggregateFunction(any, UInt64), +) ENGINE = AggregatingMergeTree() +ORDER BY (project_id, weave_ref, wb_user_id, id); + +CREATE MATERIALIZED VIEW feedback_stats_view +TO feedback_stats +AS +SELECT + project_id, + weave_ref, + wb_user_id, + id, + anySimpleState(creator) as creator, + minSimpleState(created_at) as created_at, + maxSimpleState(created_at) as updated_at, + argMaxState(feedback_type, created_at) as feedback_type, + anySimpleState(length(payload_dump)) as payload_size_bytes, +FROM feedback +GROUP BY + project_id, weave_ref, wb_user_id, id; + CREATE TABLE calls_merged_stats ( project_id String, @@ -112,7 +143,7 @@ ORDER BY (project_id, id); -- NOTE: This needs to be generally kept in sync with calls_merged. CREATE MATERIALIZED VIEW calls_merged_stats_view -TO weave_trace_db.calls_merged_stats +TO calls_merged_stats AS SELECT project_id, @@ -133,6 +164,6 @@ SELECT anySimpleState(wb_run_id) as wb_run_id, anySimpleState(deleted_at) as deleted_at, maxSimpleState(created_at) as updated_at, - argMaxSimpleState(display_name, created_at) as display_name -FROM weave_trace_db.call_parts + argMaxState(display_name, created_at) as display_name +FROM call_parts GROUP BY project_id, id; From 912dd92d29c2e827709f953711aa9ef762608995 Mon Sep 17 00:00:00 2001 From: Adrian Swanberg Date: Mon, 4 Nov 2024 09:03:55 -0800 Subject: [PATCH 3/5] fully qualifid column names --- .../migrations/007_stats_views.down.sql | 3 + .../migrations/007_stats_views.up.sql | 125 ++++++++++-------- 2 files changed, 70 insertions(+), 58 deletions(-) diff --git a/weave/trace_server/migrations/007_stats_views.down.sql b/weave/trace_server/migrations/007_stats_views.down.sql index 99c96637a50..76e6dccd636 100644 --- a/weave/trace_server/migrations/007_stats_views.down.sql +++ b/weave/trace_server/migrations/007_stats_views.down.sql @@ -9,3 +9,6 @@ DROP VIEW IF EXISTS table_rows_stats_view; DROP TABLE IF EXISTS files_stats; DROP VIEW IF EXISTS files_stats_view; + +DROP TABLE IF EXISTS feedback_stats; +DROP VIEW IF EXISTS feedback_stats_view; diff --git a/weave/trace_server/migrations/007_stats_views.up.sql b/weave/trace_server/migrations/007_stats_views.up.sql index 294977e6238..8bca195b2b9 100644 --- a/weave/trace_server/migrations/007_stats_views.up.sql +++ b/weave/trace_server/migrations/007_stats_views.up.sql @@ -15,19 +15,19 @@ CREATE MATERIALIZED VIEW files_stats_view TO files_stats AS SELECT - project_id, - digest, - chunk_index, - anySimpleState(n_chunks) as n_chunks, - anySimpleState(name) as name, - anySimpleState(length(val_bytes)) AS size_bytes, - minSimpleState(created_at) AS created_at, - maxSimpleState(created_at) AS updated_at + files.project_id, + files.digest, + files.chunk_index, + anySimpleState(files.n_chunks) as n_chunks, + anySimpleState(files.name) as name, + anySimpleState(length(files.val_bytes)) AS size_bytes, + minSimpleState(files.created_at) AS created_at, + maxSimpleState(files.created_at) AS updated_at FROM files GROUP BY - project_id, - digest, - chunk_index; + files.project_id, + files.digest, + files.chunk_index; CREATE TABLE table_rows_stats ( @@ -44,15 +44,16 @@ CREATE MATERIALIZED VIEW table_rows_stats_view TO table_rows_stats AS SELECT - project_id, - digest, - anySimpleState(refs) as refs, - anySimpleState(length(val_dump)) AS size_bytes, - minSimpleState(created_at) AS created_at, - maxSimpleState(created_at) AS updated_at + table_rows.project_id, + table_rows.digest, + anySimpleState(table_rows.refs) as refs, + anySimpleState(length(table_rows.val_dump)) AS size_bytes, + minSimpleState(table_rows.created_at) AS created_at, + maxSimpleState(table_rows.created_at) AS updated_at FROM table_rows GROUP BY - project_id, digest; + table_rows.project_id, + table_rows.digest; CREATE TABLE object_versions_stats @@ -73,18 +74,21 @@ CREATE MATERIALIZED VIEW object_versions_stats_view TO object_versions_stats AS SELECT - project_id, - kind, - object_id, - digest, - anySimpleState(base_object_class) AS base_object_class, - anySimpleState(refs) AS refs, - anySimpleState(length(val_dump)) AS size_bytes, - minSimpleState(created_at) AS created_at, - maxSimpleState(created_at) AS updated_at + object_versions.project_id, + object_versions.kind, + object_versions.object_id, + object_versions.digest, + anySimpleState(object_versions.base_object_class) AS base_object_class, + anySimpleState(object_versions.refs) AS refs, + anySimpleState(length(object_versions.val_dump)) AS size_bytes, + minSimpleState(object_versions.created_at) AS created_at, + maxSimpleState(object_versions.created_at) AS updated_at FROM object_versions GROUP BY - project_id, kind, object_id, digest; + object_versions.project_id, + object_versions.kind, + object_versions.object_id, + object_versions.digest; CREATE TABLE feedback_stats ( @@ -104,18 +108,21 @@ CREATE MATERIALIZED VIEW feedback_stats_view TO feedback_stats AS SELECT - project_id, - weave_ref, - wb_user_id, - id, - anySimpleState(creator) as creator, - minSimpleState(created_at) as created_at, - maxSimpleState(created_at) as updated_at, - argMaxState(feedback_type, created_at) as feedback_type, - anySimpleState(length(payload_dump)) as payload_size_bytes, + feedback.project_id, + feedback.weave_ref, + feedback.wb_user_id, + feedback.id, + anySimpleState(feedback.creator) as creator, + minSimpleState(feedback.created_at) as created_at, + maxSimpleState(feedback.created_at) as updated_at, + argMaxState(feedback.feedback_type, feedback.created_at) as feedback_type, + anySimpleState(length(feedback.payload_dump)) as payload_size_bytes FROM feedback GROUP BY - project_id, weave_ref, wb_user_id, id; + feedback.project_id, + feedback.weave_ref, + feedback.wb_user_id, + feedback.id; CREATE TABLE calls_merged_stats ( @@ -146,24 +153,26 @@ CREATE MATERIALIZED VIEW calls_merged_stats_view TO calls_merged_stats AS SELECT - project_id, - id, - anySimpleState(trace_id) as trace_id, - anySimpleState(parent_id) as parent_id, - anySimpleState(op_name) as op_name, - anySimpleState(started_at) as started_at, - anySimpleState(length(attributes_dump)) as attributes_size_bytes, - anySimpleState(length(inputs_dump)) as inputs_size_bytes, - anySimpleState(input_refs) as input_refs, - anySimpleState(ended_at) as ended_at, - anySimpleState(length(output_dump)) as output_size_bytes, - anySimpleState(length(summary_dump)) as summary_size_bytes, - anySimpleState(exception) as exception, - anySimpleState(output_refs) as output_refs, - anySimpleState(wb_user_id) as wb_user_id, - anySimpleState(wb_run_id) as wb_run_id, - anySimpleState(deleted_at) as deleted_at, - maxSimpleState(created_at) as updated_at, - argMaxState(display_name, created_at) as display_name + call_parts.project_id, + call_parts.id, + anySimpleState(call_parts.trace_id) as trace_id, + anySimpleState(call_parts.parent_id) as parent_id, + anySimpleState(call_parts.op_name) as op_name, + anySimpleState(call_parts.started_at) as started_at, + anySimpleState(length(call_parts.attributes_dump)) as attributes_size_bytes, + anySimpleState(length(call_parts.inputs_dump)) as inputs_size_bytes, + anySimpleState(call_parts.input_refs) as input_refs, + anySimpleState(call_parts.ended_at) as ended_at, + anySimpleState(length(call_parts.output_dump)) as output_size_bytes, + anySimpleState(length(call_parts.summary_dump)) as summary_size_bytes, + anySimpleState(call_parts.exception) as exception, + anySimpleState(call_parts.output_refs) as output_refs, + anySimpleState(call_parts.wb_user_id) as wb_user_id, + anySimpleState(call_parts.wb_run_id) as wb_run_id, + anySimpleState(call_parts.deleted_at) as deleted_at, + maxSimpleState(call_parts.created_at) as updated_at, + argMaxState(call_parts.display_name, call_parts.created_at) as display_name FROM call_parts -GROUP BY project_id, id; +GROUP BY + call_parts.project_id, + call_parts.id; From 878a3883e7a1b96a58010aef37de3b083ec7b172 Mon Sep 17 00:00:00 2001 From: Adrian Swanberg Date: Wed, 6 Nov 2024 16:36:26 -0800 Subject: [PATCH 4/5] drop some ref columns --- weave/trace_server/migrations/007_stats_views.up.sql | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/weave/trace_server/migrations/007_stats_views.up.sql b/weave/trace_server/migrations/007_stats_views.up.sql index 8bca195b2b9..78776aa6505 100644 --- a/weave/trace_server/migrations/007_stats_views.up.sql +++ b/weave/trace_server/migrations/007_stats_views.up.sql @@ -33,7 +33,6 @@ CREATE TABLE table_rows_stats ( project_id String, digest String, - refs SimpleAggregateFunction(any, Array(String)), size_bytes SimpleAggregateFunction(any, UInt64), created_at SimpleAggregateFunction(min, DateTime64(3)), updated_at SimpleAggregateFunction(max, DateTime64(3)) @@ -46,7 +45,6 @@ AS SELECT table_rows.project_id, table_rows.digest, - anySimpleState(table_rows.refs) as refs, anySimpleState(length(table_rows.val_dump)) AS size_bytes, minSimpleState(table_rows.created_at) AS created_at, maxSimpleState(table_rows.created_at) AS updated_at @@ -63,7 +61,6 @@ CREATE TABLE object_versions_stats object_id String, digest String, base_object_class SimpleAggregateFunction(any, Nullable(String)), - refs SimpleAggregateFunction(any, Array(String)), size_bytes SimpleAggregateFunction(any, UInt64), created_at SimpleAggregateFunction(min, DateTime64(3)), updated_at SimpleAggregateFunction(max, DateTime64(3)) @@ -79,7 +76,6 @@ SELECT object_versions.object_id, object_versions.digest, anySimpleState(object_versions.base_object_class) AS base_object_class, - anySimpleState(object_versions.refs) AS refs, anySimpleState(length(object_versions.val_dump)) AS size_bytes, minSimpleState(object_versions.created_at) AS created_at, maxSimpleState(object_versions.created_at) AS updated_at @@ -134,12 +130,10 @@ CREATE TABLE calls_merged_stats started_at SimpleAggregateFunction(any, Nullable(DateTime64(3))), attributes_size_bytes SimpleAggregateFunction(any, Nullable(UInt64)), inputs_size_bytes SimpleAggregateFunction(any, Nullable(UInt64)), - input_refs SimpleAggregateFunction(groupArrayArray, Array(String)), ended_at SimpleAggregateFunction(any, Nullable(DateTime64(3))), output_size_bytes SimpleAggregateFunction(any, Nullable(UInt64)), summary_size_bytes SimpleAggregateFunction(any, Nullable(UInt64)), - exception SimpleAggregateFunction(any, Nullable(String)), - output_refs SimpleAggregateFunction(groupArrayArray, Array(String)), + exception_size_bytes SimpleAggregateFunction(any, Nullable(UInt64)), wb_user_id SimpleAggregateFunction(any, Nullable(String)), wb_run_id SimpleAggregateFunction(any, Nullable(String)), updated_at SimpleAggregateFunction(max, DateTime64(3)), @@ -161,12 +155,10 @@ SELECT anySimpleState(call_parts.started_at) as started_at, anySimpleState(length(call_parts.attributes_dump)) as attributes_size_bytes, anySimpleState(length(call_parts.inputs_dump)) as inputs_size_bytes, - anySimpleState(call_parts.input_refs) as input_refs, anySimpleState(call_parts.ended_at) as ended_at, anySimpleState(length(call_parts.output_dump)) as output_size_bytes, anySimpleState(length(call_parts.summary_dump)) as summary_size_bytes, - anySimpleState(call_parts.exception) as exception, - anySimpleState(call_parts.output_refs) as output_refs, + anySimpleState(length(call_parts.exception)) as exception_size_bytes, anySimpleState(call_parts.wb_user_id) as wb_user_id, anySimpleState(call_parts.wb_run_id) as wb_run_id, anySimpleState(call_parts.deleted_at) as deleted_at, From 8d236830a765a17140e6dacf1f8a36699818d0cf Mon Sep 17 00:00:00 2001 From: Adrian Swanberg Date: Wed, 6 Nov 2024 22:27:53 -0800 Subject: [PATCH 5/5] bump migration number --- .../{007_stats_views.down.sql => 008_stats_views.down.sql} | 0 .../migrations/{007_stats_views.up.sql => 008_stats_views.up.sql} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename weave/trace_server/migrations/{007_stats_views.down.sql => 008_stats_views.down.sql} (100%) rename weave/trace_server/migrations/{007_stats_views.up.sql => 008_stats_views.up.sql} (100%) diff --git a/weave/trace_server/migrations/007_stats_views.down.sql b/weave/trace_server/migrations/008_stats_views.down.sql similarity index 100% rename from weave/trace_server/migrations/007_stats_views.down.sql rename to weave/trace_server/migrations/008_stats_views.down.sql diff --git a/weave/trace_server/migrations/007_stats_views.up.sql b/weave/trace_server/migrations/008_stats_views.up.sql similarity index 100% rename from weave/trace_server/migrations/007_stats_views.up.sql rename to weave/trace_server/migrations/008_stats_views.up.sql