Update dependency diesel-guard to v0.10.0#13402
Merged
Merged
Conversation
6ecbc47 to
c12dd42
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.9.0→0.10.0Release Notes
ayarotsky/diesel-guard (diesel-guard)
v0.10.0Compare Source
Added
RenameSchemaCheck— DetectsALTER SCHEMA ... RENAME TO. Renaming a schema invalidates every qualified reference (old_schema.table,old_schema.function, etc.) across the entire application. Acquires ACCESS EXCLUSIVE.RefreshMatViewCheck— DetectsREFRESH MATERIALIZED VIEWwithoutCONCURRENTLY. Without it the view holds an ACCESS EXCLUSIVE lock, blocking all reads for the duration of the refresh.AddDomainCheckConstraintCheck— DetectsALTER DOMAIN ADD CONSTRAINTwithoutNOT VALID. Postgres validates all columns that use the domain across every table — potentially a slow full-scan under ACCESS EXCLUSIVE.AddExcludeConstraintCheck— DetectsADD EXCLUDEconstraints. UnlikeCHECKorFOREIGN KEY, exclusion constraints have noNOT VALIDescape hatch and hold SHARE ROW EXCLUSIVE for the full validation scan.CreateTableWithoutPkCheck— DetectsCREATE TABLEstatements that define no primary key. Tables without a PK cannot participate in logical replication;TEMPtables andCREATE TABLE (LIKE ...)are exempt.MutationWithoutWhereCheck— DetectsDELETE FROM tableorUPDATE table SET ...with no WHERE clause. A missing WHERE affects every row, holding a ROW EXCLUSIVE lock for minutes on large tables.DropNotNullCheck— DetectsALTER COLUMN ... DROP NOT NULL. Removing a NOT NULL constraint silently changes a contract that application code may depend on.CreateTableSerialCheck— DetectsSERIAL,BIGSERIAL, andSMALLSERIALpseudo-types onCREATE TABLE. These PostgreSQL-specific types create separately-owned sequences that complicate permissions, dump/restore, and replication. Recommends SQL-standardGENERATED BY DEFAULT AS IDENTITY.(line N)and included in JSON output as alinefield.--format githubflag emits::error file=…,line=…::workflow commands, enabling inline PR annotations on the diff when run in GitHub Actions.Changed
stderrwarnings. They now appear asSCRIPT ERRORviolations in the output, making failures visible in CI and in--format githubannotations.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.