@axiom-lattice/pg-stores 1.0.84 → 1.0.85

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @axiom-lattice/pg-stores@1.0.84 build /home/runner/work/agentic/agentic/packages/pg-stores
2
+ > @axiom-lattice/pg-stores@1.0.85 build /home/runner/work/agentic/agentic/packages/pg-stores
3
3
  > tsup src/index.ts --format cjs,esm --dts --sourcemap
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,13 +8,13 @@
8
8
  CLI Target: es2020
9
9
  CJS Build start
10
10
  ESM Build start
11
- ESM dist/index.mjs 242.31 KB
12
- ESM dist/index.mjs.map 464.46 KB
13
- ESM ⚡️ Build success in 734ms
14
- CJS dist/index.js 248.12 KB
15
- CJS dist/index.js.map 464.65 KB
16
- CJS ⚡️ Build success in 734ms
11
+ CJS dist/index.js 248.30 KB
12
+ CJS dist/index.js.map 465.09 KB
13
+ CJS ⚡️ Build success in 632ms
14
+ ESM dist/index.mjs 242.49 KB
15
+ ESM dist/index.mjs.map 464.90 KB
16
+ ESM ⚡️ Build success in 657ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 17396ms
18
+ DTS ⚡️ Build success in 16627ms
19
19
  DTS dist/index.d.ts 57.13 KB
20
20
  DTS dist/index.d.mts 57.13 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @axiom-lattice/pg-stores
2
2
 
3
+ ## 1.0.85
4
+
5
+ ### Patch Changes
6
+
7
+ - c8749a0: fix pg store
8
+ - 2954442: fix issue
9
+ - Updated dependencies [2954442]
10
+ - @axiom-lattice/core@2.1.94
11
+ - @axiom-lattice/protocols@2.1.48
12
+
3
13
  ## 1.0.84
4
14
 
5
15
  ### Patch Changes
package/dist/index.js CHANGED
@@ -153,6 +153,11 @@ var MigrationManager = class {
153
153
  const pkColumn = pkCheck.rows[0]?.column_name;
154
154
  const constraintName = pkCheck.rows[0]?.constraint_name;
155
155
  if (pkColumn === "version" && constraintName) {
156
+ await client.query(`
157
+ DELETE FROM lattice_schema_migrations a
158
+ USING lattice_schema_migrations b
159
+ WHERE a.name = b.name AND a.version < b.version
160
+ `);
156
161
  await client.query(
157
162
  `ALTER TABLE lattice_schema_migrations DROP CONSTRAINT ${constraintName}`
158
163
  );