From 2ff987de6ff1650ff7ae5506b29a5364d86e0a6a Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Thu, 29 Aug 2024 18:00:42 +0800 Subject: [PATCH] fix github action --- .github/workflows/lint-migrations.yml | 2 ++ packages/db/migrations/0188.do.add_archived_status_to_user.sql | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint-migrations.yml b/.github/workflows/lint-migrations.yml index 00350abcd0..c731007892 100644 --- a/.github/workflows/lint-migrations.yml +++ b/.github/workflows/lint-migrations.yml @@ -16,7 +16,9 @@ jobs: run: | modified_migrations=$(git diff --diff-filter=d --name-only main 'packages/db/migrations/*.do.*.sql') echo "$modified_migrations" + echo "text<> $GITHUB_OUTPUT echo "file_names=$modified_migrations" >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT id: modified-migrations - uses: sbdchd/squawk-action@v1 with: diff --git a/packages/db/migrations/0188.do.add_archived_status_to_user.sql b/packages/db/migrations/0188.do.add_archived_status_to_user.sql index 9d653344c6..06518f4b98 100755 --- a/packages/db/migrations/0188.do.add_archived_status_to_user.sql +++ b/packages/db/migrations/0188.do.add_archived_status_to_user.sql @@ -4,6 +4,6 @@ BEGIN; -ALTER TYPE user_status_type ADD VALUE 'ARCHIVED'; +ALTER TYPE user_status_type ADD VALUE IF NOT EXISTS 'ARCHIVED'; COMMIT;