Skip to content

Commit

Permalink
Develop yield to stakers new migration (#2644)
Browse files Browse the repository at this point in the history
* Tweak the migration for the yield to stakers

* Also add sqlfluff to the actions
  • Loading branch information
af-afk authored May 15, 2024
1 parent f82da24 commit d5311c9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/sqlfluff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: sqlfluff

on:
pull_request:
branches:
- development

jobs:
sqlfluff:
name: sqlfluff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: yu-iskw/[email protected]
id: lint-sql
with:
github_token: ${{ secrets.github_token }}
sqlfluff_version: "3.0.6"
paths: '${{ github.workspace }}/database/migrations'
level: 'info'
- name: 'Show outputs (Optional)'
shell: bash
run: |
echo '${{ steps.lint-sql.outputs.sqlfluff-results }}' | jq -r '.'
echo '${{ steps.lint-sql.outputs.sqlfluff-results-rdjson }}' | jq -r '.'
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
-- migrate:up

ALTER TABLE worker_config_ethereum
ADD COLUMN yield_to_stakers NOT NULL DEFAULT FALSE;
ADD COLUMN yield_to_stakers BOOLEAN NOT NULL DEFAULT FALSE;

-- migrate:down

ALTER TABLE worker_config_ethereum
DROP COLUMN yield_to_stakers NOT NULL DEFAULT FALSE;
DROP COLUMN yield_to_stakers;

0 comments on commit d5311c9

Please sign in to comment.