Call the descriptor sync once at boot, and rename the package
index.js ran syncDescriptorsWithSchema twice on one line, a paste slip from v1.4. It's idempotent, so the second call only re-read every table's schema; boot now checks once. package.json's name was still "figma-make-app" from the original export; it's "ngu-web-app" now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
97c1827ca9
commit
5b9c8f7391
2 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "figma-make-app",
|
||||
"name": "ngu-web-app",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"type": "module",
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ const DB_PATH = process.env.DB_PATH ?? "./ngu.db";
|
|||
|
||||
const db = await openDatabase(DB_PATH);
|
||||
const version = migrate(db);
|
||||
syncDescriptorsWithSchema(db, ENTITIES);syncDescriptorsWithSchema(db, ENTITIES);
|
||||
syncDescriptorsWithSchema(db, ENTITIES);
|
||||
|
||||
console.log(`db ${DB_PATH} (${db.driverName}, schema v${version})`);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue