From f30599fbd22b06e32f344c0befa16e9a0d1450f8 Mon Sep 17 00:00:00 2001 From: Steven Date: Fri, 10 May 2024 23:23:15 +0800 Subject: [PATCH] chore: fix scripts --- .../mysql/migration/prod/0.22/00__resource_storage_type.sql | 6 +++--- .../migration/prod/0.22/00__resource_storage_type.sql | 6 +++--- .../migration/prod/0.22/00__resource_storage_type.sql | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/store/db/mysql/migration/prod/0.22/00__resource_storage_type.sql b/store/db/mysql/migration/prod/0.22/00__resource_storage_type.sql index 3d3233737..918d44567 100644 --- a/store/db/mysql/migration/prod/0.22/00__resource_storage_type.sql +++ b/store/db/mysql/migration/prod/0.22/00__resource_storage_type.sql @@ -11,6 +11,6 @@ UPDATE `resource` SET `storage_type` = 'EXTERNAL', `reference` = `external_link` WHERE `external_link` IS NOT NULL AND `external_link` != ''; -ALTER TABLE `resource` - DROP COLUMN `internal_path`, - DROP COLUMN `external_link`; +ALTER TABLE `resource` DROP COLUMN `internal_path`; + +ALTER TABLE `resource` DROP COLUMN `external_link`; diff --git a/store/db/postgres/migration/prod/0.22/00__resource_storage_type.sql b/store/db/postgres/migration/prod/0.22/00__resource_storage_type.sql index 3d3233737..918d44567 100644 --- a/store/db/postgres/migration/prod/0.22/00__resource_storage_type.sql +++ b/store/db/postgres/migration/prod/0.22/00__resource_storage_type.sql @@ -11,6 +11,6 @@ UPDATE `resource` SET `storage_type` = 'EXTERNAL', `reference` = `external_link` WHERE `external_link` IS NOT NULL AND `external_link` != ''; -ALTER TABLE `resource` - DROP COLUMN `internal_path`, - DROP COLUMN `external_link`; +ALTER TABLE `resource` DROP COLUMN `internal_path`; + +ALTER TABLE `resource` DROP COLUMN `external_link`; diff --git a/store/db/sqlite/migration/prod/0.22/00__resource_storage_type.sql b/store/db/sqlite/migration/prod/0.22/00__resource_storage_type.sql index 8f910aedb..daa46de20 100644 --- a/store/db/sqlite/migration/prod/0.22/00__resource_storage_type.sql +++ b/store/db/sqlite/migration/prod/0.22/00__resource_storage_type.sql @@ -12,6 +12,6 @@ UPDATE resource SET storage_type = 'EXTERNAL', reference = external_link WHERE external_link IS NOT NULL AND external_link != ''; -ALTER TABLE resource - DROP COLUMN internal_path, - DROP COLUMN external_link; +ALTER TABLE resource DROP COLUMN internal_path; + +ALTER TABLE resource DROP COLUMN external_link;