From acc9499f2a17b666d3ec9502cadfc7ce47ce5882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 14 Dec 2023 10:01:14 +0100 Subject: [PATCH] Manager: drop the `job_storage_infos` database table GORM Automigration created a separate `job_storage_infos` table (because we used it wrong, to be fair), which is actually only used as an embedded struct in the `jobs` table. This means this table itself can be dropped. --- .../migrations/0002_drop_job_storage_infos.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 internal/manager/persistence/migrations/0002_drop_job_storage_infos.sql diff --git a/internal/manager/persistence/migrations/0002_drop_job_storage_infos.sql b/internal/manager/persistence/migrations/0002_drop_job_storage_infos.sql new file mode 100644 index 00000000..692b1482 --- /dev/null +++ b/internal/manager/persistence/migrations/0002_drop_job_storage_infos.sql @@ -0,0 +1,9 @@ +-- GORM Automigration created a separate `job_storage_infos` table (because we +-- used it wrong, to be fair), which is actually only used as an embedded struct +-- in the `jobs` table. This means this table can be dropped. +-- +-- +goose Up +DROP TABLE `job_storage_infos`; + +-- +goose Down +CREATE TABLE `job_storage_infos` (`shaman_checkout_id` varchar(255) DEFAULT "");