@voltro/database 0.20.0 → 0.20.2

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/dist/sql.js CHANGED
@@ -1388,7 +1388,7 @@ BEGIN
1388
1388
  }
1389
1389
  let x = /* @__PURE__ */ new Map();
1390
1390
  for (let e of p) {
1391
- let t = `${e.table_name}${e.constraint_name}`, n = x.get(t);
1391
+ let t = `${e.table_name}\u0000${e.constraint_name}`, n = x.get(t);
1392
1392
  n || (n = {
1393
1393
  table: e.table_name,
1394
1394
  columns: []
@@ -2363,11 +2363,11 @@ BEGIN
2363
2363
  });
2364
2364
  return yield* e`
2365
2365
  INSERT INTO ${e("_voltro_migration_plans")}
2366
- (${e("id")}, ${e("fingerprint")}, ${e("operations")},
2366
+ (${e("id")}, ${e("fingerprint")}, ${e("liveFingerprint")}, ${e("operations")},
2367
2367
  ${e("appliedBy")}, ${e("environment")}, ${e("source")},
2368
2368
  ${e("durationMs")}, ${e("appliedAt")}, ${e("notes")})
2369
2369
  VALUES
2370
- (${l}, ${t.toFingerprint}, ${JSON.stringify(t.operations)},
2370
+ (${l}, ${t.toFingerprint}, ${o.fromFingerprint}, ${JSON.stringify(t.operations)},
2371
2371
  ${n.appliedBy}, ${n.environment}, ${n.source},
2372
2372
  ${c}, ${f}, ${n.notes ?? null})
2373
2373
  `, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/database",
3
- "version": "0.20.0",
3
+ "version": "0.20.2",
4
4
  "description": "Browser-safe schema DSL, query builder, and cross-dialect migration planner for Voltro — one schema, every SQL backend.",
5
5
  "keywords": [
6
6
  "voltro",
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@effect/sql": "^0.51.1",
46
- "@voltro/logger": "0.20.0",
46
+ "@voltro/logger": "0.20.2",
47
47
  "typeid-js": "^1.2.0",
48
48
  "ulidx": "^2.4.1"
49
49
  },