@ultimat3/db 22.12.0 → 22.14.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/db",
3
- "version": "22.12.0",
3
+ "version": "22.14.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.12.0"
34
+ "@ultimat3/core": "22.14.0"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@electric-sql/pglite": ">=0.5.0"
@@ -59,6 +59,17 @@ export const GENERATABLE_FORMS: readonly GeneratableForm[] = [
59
59
  name: 'alter column drop expression',
60
60
  pattern: /^alter\s+table\s[\s\S]*?\balter\s+column\s[\s\S]*?\bdrop\s+expression\b/,
61
61
  },
62
+ // `alterColumnInPlace` (`column-alter.ts`) writes all four — a moved default in both halves,
63
+ // `drop not null` up with `set not null` down — and the list lacked them through 22.12.0, so
64
+ // `x db gen` wrote migrations its own rail asked a `-- ungeneratable:` header for.
65
+ {
66
+ name: 'alter column set/drop default',
67
+ pattern: /^alter\s+table\s[\s\S]*?\balter\s+column\s[\s\S]*?\b(?:set|drop)\s+default\b/,
68
+ },
69
+ {
70
+ name: 'alter column set/drop not null',
71
+ pattern: /^alter\s+table\s[\s\S]*?\balter\s+column\s[\s\S]*?\b(?:set|drop)\s+not\s+null\b/,
72
+ },
62
73
  // The form the doc block above calls "the statement that started this", finally on the list:
63
74
  // `GenerateOptions.replicaIdentityFull` emits it `As of 2026-08-26`, so without this entry the
64
75
  // rail reports SQL the generator itself just wrote. Covers `full` and `default` in one phrase —