temporal icon indicating copy to clipboard operation
temporal copied to clipboard

feat: add SQL Review Action to check SQL anti-pattern and enforce schema consistency for MySQL and PostgreSQL

Open tianzhou opened this issue 1 year ago • 1 comments

What changed?

Use https://github.com/marketplace/actions/sql-review GitHub Action to enforce schema consistency for MySQL and PostgreSQL.

Why?

It's a SQL lint to enforce schema consistency for team development

How did you test it?

Tested by tweaking the schema file and check the output. I have modified rules to cater with the existing schema convention. But you can further tweak it there https://www.bytebase.com/sql-review-guide

Potential risks

N/A, it's a GitHub Action check.

Is hotfix candidate?

No

tianzhou avatar Sep 20 '22 08:09 tianzhou

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Sep 20 '22 08:09 CLAassistant

Ping

tianzhou avatar Oct 10 '22 07:10 tianzhou

We don't have a need for this linter today. We can re-evaluate our decision in the future.

mindaugasrukas avatar Nov 04 '22 03:11 mindaugasrukas