diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e31492aa3..c67e8051f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -49,6 +49,10 @@ jobs: - name: Install dependencies run: pnpm install + - name: Execute SQL script + run: | + psql -U test -d earthworm_test -h localhost -p 5480 -f /packages/db/init.sql + - name: Run database initialization command run: pnpm db:init:test:ci diff --git a/packages/db/init.sql b/packages/db/init.sql new file mode 100644 index 000000000..be8d714fb --- /dev/null +++ b/packages/db/init.sql @@ -0,0 +1 @@ +CREATE TYPE membership_type AS ENUM ('regular', 'premium'); \ No newline at end of file