Home

giogio / openez-graph

public
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix(db): make packages/db authoritative for schema initialization

3 months ago

9a83099
Authored
asta-nguyen8/11/2026, 4:14:46 PM
Replace the web server's inline schema DDL with calls to
getRegistryDdl() and getFullWorkspaceDdl() from @openez-graph/db so
the web server never creates a schema that diverges from the
CLI/MCP/indexer path. Add missing column migrations for
index_generation, graph_generation, graph_build_owner,
graph_build_epoch, and graph_lease_expires_at. Export the DDL
functions from the db package barrel.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

Parentd48ccc5

2 files changed
  • apps/web/src/server/sqlite.ts+14−138
  • packages/db/src/sqlite/index.ts+7−2