From 0da28b884efa21ab704a2e1567a80f7913eddb88 Mon Sep 17 00:00:00 2001 From: Adrien Piquerez Date: Mon, 19 Aug 2024 14:35:24 +0200 Subject: [PATCH] Bump migration files --- .../resources/migrations/V22__add_is_latest_version.sql | 2 -- .../main/resources/migrations/V22__new_artifact_fields.sql | 6 +++--- .../resources/migrations/V23__add_is_latest_version.sql | 2 ++ 3 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 modules/infra/src/main/resources/migrations/V22__add_is_latest_version.sql create mode 100644 modules/infra/src/main/resources/migrations/V23__add_is_latest_version.sql diff --git a/modules/infra/src/main/resources/migrations/V22__add_is_latest_version.sql b/modules/infra/src/main/resources/migrations/V22__add_is_latest_version.sql deleted file mode 100644 index c2116fc30..000000000 --- a/modules/infra/src/main/resources/migrations/V22__add_is_latest_version.sql +++ /dev/null @@ -1,2 +0,0 @@ -ALTER TABLE artifacts -ADD COLUMN is_latest_version BOOLEAN NOT NULL default 'false'; diff --git a/modules/infra/src/main/resources/migrations/V22__new_artifact_fields.sql b/modules/infra/src/main/resources/migrations/V22__new_artifact_fields.sql index c588241bc..5bb044449 100644 --- a/modules/infra/src/main/resources/migrations/V22__new_artifact_fields.sql +++ b/modules/infra/src/main/resources/migrations/V22__new_artifact_fields.sql @@ -1,4 +1,4 @@ ALTER TABLE artifacts -ADD COLUMN scaladoc_url VARCHAR, -ADD COLUMN version_scheme VARCHAR, -ADD COLUMN developers VARCHAR NOT NULL DEFAULT '[]'; \ No newline at end of file +ADD COLUMN IF NOT EXISTS scaladoc_url VARCHAR, +ADD COLUMN IF NOT EXISTS version_scheme VARCHAR, +ADD COLUMN IF NOT EXISTS developers VARCHAR NOT NULL DEFAULT '[]'; diff --git a/modules/infra/src/main/resources/migrations/V23__add_is_latest_version.sql b/modules/infra/src/main/resources/migrations/V23__add_is_latest_version.sql new file mode 100644 index 000000000..5217311cc --- /dev/null +++ b/modules/infra/src/main/resources/migrations/V23__add_is_latest_version.sql @@ -0,0 +1,2 @@ +ALTER TABLE artifacts +ADD COLUMN IF NOT EXISTS is_latest_version BOOLEAN NOT NULL default 'false';