feat(db): add migrations for auth, task, and legacy tables#113
Merged
Conversation
Adds sequelize migrations for the auth schema (better-auth tables), weavejs_task, and legacy weavejs_connection/thread/image/video tables. Updates README with PostgreSQL setup steps and fixes vite alias for weave-sdk/server to resolve to index.node.ts.
fddb875 to
8a73421
Compare
There was a problem hiding this comment.
Pull request overview
This PR adds Sequelize migrations to bootstrap PostgreSQL schemas/tables required by better-auth, the workloads/task system, and several legacy Weave.js tables, and updates local-dev documentation and Vite path aliasing to support running the backend against a local DB and a local weavejs repo checkout.
Changes:
- Add migrations for
authschema (better-auth tables),weavejs_task, and legacyweavejs_*tables (connections/threads/media). - Update Quickstart to include PostgreSQL env vars and local migration steps.
- Fix Vite alias for
@inditextech/weave-sdk/serverto resolve to the Node entry (index.node.ts).
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Documents local PostgreSQL env vars and adds steps to start DB + run migrations. |
| code/vite.config.js | Adjusts weave-sdk server alias to target sdk/src/index.node.ts. |
| code/migrations/20251118164400-feature-auth.cjs | Creates auth schema + better-auth tables via raw SQL. |
| code/migrations/20251118164500-feature-task.cjs | Adds weavejs_task table migration. |
| code/migrations/20251118164550-feature-legacy-sequelize-tables.cjs | Adds legacy tables for connections/threads/images/videos. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
bdbd921 to
eb6a5a5
Compare
jesusmpc
reviewed
Jul 7, 2026
bb1ef85 to
cd8b844
Compare
Local .env is gitignored so new contributors had no reference for required config keys. Un-ignore .env.example specifically.
cd8b844 to
d64f187
Compare
|
jesusmpc
approved these changes
Jul 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Adds sequelize migrations for the auth schema (better-auth tables), weavejs_task, and legacy weavejs_connection/thread/image/video tables. Updates README with PostgreSQL setup steps and fixes vite alias for weave-sdk/server to resolve to index.node.ts.