Skip to content

Commit

Permalink
0.27.1 drizzle-kit release
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiSherman committed Nov 1, 2024
1 parent a21c8e3 commit 0d06d51
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelogs/drizzle-kit/0.27.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix: [[BUG]: When using RLS policies and Views, the view is the last clause generated](https://github.com/drizzle-team/drizzle-orm/issues/3378)
4 changes: 2 additions & 2 deletions drizzle-kit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "drizzle-kit",
"version": "0.27.0",
"version": "0.27.1",
"homepage": "https://orm.drizzle.team",
"keywords": [
"drizzle",
Expand Down Expand Up @@ -138,4 +138,4 @@
"default": "./api.mjs"
}
}
}
}
4 changes: 2 additions & 2 deletions drizzle-kit/src/snapshotsDiffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1974,6 +1974,8 @@ export const applyPgSnapshotsDiff = async (
jsonStatements.push(...jsonAlteredUniqueConstraints);
jsonStatements.push(...jsonAlterEnumsWithDroppedValues);

jsonStatements.push(...createViews);

jsonStatements.push(...jsonRenamePoliciesStatements);
jsonStatements.push(...jsonDropPoliciesStatements);
jsonStatements.push(...jsonCreatePoliciesStatements);
Expand All @@ -1984,8 +1986,6 @@ export const applyPgSnapshotsDiff = async (
jsonStatements.push(...jsonCreateIndPoliciesStatements);
jsonStatements.push(...jsonAlterIndPoliciesStatements);

jsonStatements.push(...createViews);

jsonStatements.push(...dropEnums);
jsonStatements.push(...dropSequences);
jsonStatements.push(...dropSchemas);
Expand Down

0 comments on commit 0d06d51

Please sign in to comment.