diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fbc7e19..6a8c6ea 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -on: [ push ] +on: [ push, pull_request ] jobs: migration_job: diff --git a/deploy/pgbench-accounts-index-bid.sql b/deploy/pgbench-accounts-index-bid.sql new file mode 100644 index 0000000..e499a80 --- /dev/null +++ b/deploy/pgbench-accounts-index-bid.sql @@ -0,0 +1,5 @@ +-- 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..00535a2 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 2021-08-05T05:36:15Z 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;