From bd02b02653016923212ef07abd38895d64553a2e Mon Sep 17 00:00:00 2001 From: Daniyar Itegulov Date: Mon, 8 Jul 2024 20:04:19 +1000 Subject: [PATCH] fix processing_started_at column type --- ...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);