From 7bfd77caaa7070421b33245afc1b29e679ce7adb Mon Sep 17 00:00:00 2001 From: Andrew Davis <1709934+Savid@users.noreply.github.com> Date: Thu, 3 Jul 2025 14:20:17 +1000 Subject: [PATCH] feat(deploy/migrations): add structlog call_to_address --- .../clickhouse/069_transactions_structlog_call_to.down.sql | 5 +++++ .../clickhouse/069_transactions_structlog_call_to.up.sql | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 deploy/migrations/clickhouse/069_transactions_structlog_call_to.down.sql create mode 100644 deploy/migrations/clickhouse/069_transactions_structlog_call_to.up.sql diff --git a/deploy/migrations/clickhouse/069_transactions_structlog_call_to.down.sql b/deploy/migrations/clickhouse/069_transactions_structlog_call_to.down.sql new file mode 100644 index 000000000..f87b60569 --- /dev/null +++ b/deploy/migrations/clickhouse/069_transactions_structlog_call_to.down.sql @@ -0,0 +1,5 @@ +ALTER TABLE canonical_execution_transaction_structlog on cluster '{cluster}' + DROP COLUMN call_to_address; + +ALTER TABLE canonical_execution_transaction_structlog_local on cluster '{cluster}' + DROP COLUMN call_to_address; diff --git a/deploy/migrations/clickhouse/069_transactions_structlog_call_to.up.sql b/deploy/migrations/clickhouse/069_transactions_structlog_call_to.up.sql new file mode 100644 index 000000000..114ef4527 --- /dev/null +++ b/deploy/migrations/clickhouse/069_transactions_structlog_call_to.up.sql @@ -0,0 +1,5 @@ +ALTER TABLE canonical_execution_transaction_structlog_local ON CLUSTER '{cluster}' + ADD COLUMN call_to_address Nullable(String) COMMENT 'Address of a CALL operation' CODEC(ZSTD(1)) AFTER error; + +ALTER TABLE canonical_execution_transaction_structlog ON CLUSTER '{cluster}' + ADD COLUMN call_to_address Nullable(String) COMMENT 'Address of a CALL operation' CODEC(ZSTD(1)) AFTER error;