@kidecms/core 0.23.0 → 0.23.1

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/internals/push.ts CHANGED
@@ -123,7 +123,9 @@ async function main() {
123
123
  }
124
124
  }
125
125
  const { statementsToExecute, hasDataLoss } = diff;
126
- const statements = statementsToExecute.filter((stmt) => !isSearchIndexStatement(stmt));
126
+ // drizzle-kit emits each unique index twice when it recreates a table — the
127
+ // second identical CREATE crashes SQLite, so drop exact duplicates.
128
+ const statements = [...new Set(statementsToExecute)].filter((stmt) => !isSearchIndexStatement(stmt));
127
129
 
128
130
  // drizzle-kit's hasDataLoss misses plain DROP COLUMN — classify statement shapes too.
129
131
  // (`__new_` is drizzle's table-recreate pattern: create copy, insert-select, drop old.)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kidecms/core",
3
- "version": "0.23.0",
3
+ "version": "0.23.1",
4
4
  "description": "Kide CMS runtime — core library, admin UI, routes, and middleware for Astro. Shipped as TypeScript source.",
5
5
  "keywords": [
6
6
  "cms",