diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fbc7e19..bc955de 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -on: [ push ] +on: [ pull_request ] jobs: migration_job: @@ -11,7 +11,8 @@ jobs: # Run DB migrations with the public action - name: DB migrations checker with DLE - uses: postgres-ai/migration-ci-action@v0.1.1 +# uses: postgres-ai/migration-ci-action@v0.1.1 + uses: agneum/migration-action@composite-action id: db-migrations with: dbname: test_small @@ -39,3 +40,5 @@ jobs: # Show migration summary - name: Get the response status run: echo "${{ steps.db-migration.outputs.response }}" + + diff --git a/deploy/pgbench-accounts-index-bid.sql b/deploy/pgbench-accounts-index-bid.sql new file mode 100644 index 0000000..06ea4d9 --- /dev/null +++ b/deploy/pgbench-accounts-index-bid.sql @@ -0,0 +1,3 @@ +-- Deploy green-zone:pgbench-accounts-index-bid to pg + +create index concurrently bid_idx on pgbench_accounts(bid); diff --git a/revert/pgbench-accounts-index-bid.sql b/revert/pgbench-accounts-index-bid.sql new file mode 100644 index 0000000..bd0d163 --- /dev/null +++ b/revert/pgbench-accounts-index-bid.sql @@ -0,0 +1,3 @@ +-- Revert green-zone:pgbench-accounts-index-bid from pg + +drop index concurrently if exists bid_idx; diff --git a/sqitch.plan b/sqitch.plan index 9321ad2..ab302f1 100644 --- a/sqitch.plan +++ b/sqitch.plan @@ -4,3 +4,4 @@ initial 2021-06-29T04:14:53Z akartasov # init a database schema @v0.0.1 2021-06-29T04:20:10Z akartasov # initial version +pgbench-accounts-index-bid 2022-09-05T09:53:14Z akartasov # add a new pgbench_accounts index diff --git a/verify/pgbench-accounts-index-bid.sql b/verify/pgbench-accounts-index-bid.sql new file mode 100644 index 0000000..3f299a9 --- /dev/null +++ b/verify/pgbench-accounts-index-bid.sql @@ -0,0 +1,4 @@ +-- Verify green-zone:pgbench-accounts-index-bid on pg + +begin; +rollback;