From 960f2e386ebdd8f767c6778e0986387df75be9d1 Mon Sep 17 00:00:00 2001 From: Daniyar Itegulov Date: Mon, 8 Jul 2024 21:25:24 +1000 Subject: [PATCH] fix(vm-runner): change `processing_started_at` column type to `timestamp` (#2397) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## What ❔ ## Why ❔ ## Checklist - [ ] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - [ ] Documentation comments have been added / updated. - [ ] Code has been formatted via `zk fmt` and `zk lint`. --- ...708194915_vm_runner_processing_started_at_timestamp.down.sql | 2 ++ ...40708194915_vm_runner_processing_started_at_timestamp.up.sql | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 core/lib/dal/migrations/20240708194915_vm_runner_processing_started_at_timestamp.down.sql create mode 100644 core/lib/dal/migrations/20240708194915_vm_runner_processing_started_at_timestamp.up.sql diff --git a/core/lib/dal/migrations/20240708194915_vm_runner_processing_started_at_timestamp.down.sql b/core/lib/dal/migrations/20240708194915_vm_runner_processing_started_at_timestamp.down.sql new file mode 100644 index 000000000000..9e957f700f43 --- /dev/null +++ b/core/lib/dal/migrations/20240708194915_vm_runner_processing_started_at_timestamp.down.sql @@ -0,0 +1,2 @@ +ALTER TABLE vm_runner_protective_reads ALTER COLUMN processing_started_at TYPE TIME USING (null); +ALTER TABLE vm_runner_bwip ALTER COLUMN processing_started_at TYPE TIME USING (null); diff --git a/core/lib/dal/migrations/20240708194915_vm_runner_processing_started_at_timestamp.up.sql b/core/lib/dal/migrations/20240708194915_vm_runner_processing_started_at_timestamp.up.sql new file mode 100644 index 000000000000..0afcdfe5aecf --- /dev/null +++ b/core/lib/dal/migrations/20240708194915_vm_runner_processing_started_at_timestamp.up.sql @@ -0,0 +1,2 @@ +ALTER TABLE vm_runner_protective_reads ALTER COLUMN processing_started_at TYPE TIMESTAMP USING (null); +ALTER TABLE vm_runner_bwip ALTER COLUMN processing_started_at TYPE TIMESTAMP USING (null);