@ultimat3/db 22.1.0 → 22.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/destructive.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultimat3/db",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.2.0",
|
|
4
4
|
"description": "Postgres access, transactions, migrations and drift detection",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"test": "bun test"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@ultimat3/core": "22.
|
|
34
|
+
"@ultimat3/core": "22.2.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@electric-sql/pglite": ">=0.5.0"
|
package/src/destructive.ts
CHANGED
|
@@ -79,7 +79,9 @@ export interface DestructiveStatement {
|
|
|
79
79
|
*/
|
|
80
80
|
const RULES: readonly (readonly [DestructiveKind, RegExp])[] = [
|
|
81
81
|
['drop-table', /\bdrop\s+(?:foreign\s+)?table\b/],
|
|
82
|
-
|
|
82
|
+
// Statement-leading only: `before truncate` in a trigger and `grant/revoke truncate` name the
|
|
83
|
+
// operation to guard or permit it, and the rail read them as the operation itself (#522).
|
|
84
|
+
['truncate', /^\s*truncate\b/],
|
|
83
85
|
// Inside an `alter table`, a bare `drop <name>` is a column: every sub-clause that drops
|
|
84
86
|
// something the database can rebuild names itself, and all of them are listed here.
|
|
85
87
|
[
|