You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working in a new worktree or wanting to reset your local database, run from the project root:
100
+
101
+
```bash
102
+
# Create a fresh D1 database for your branch
103
+
npm run db:reset
104
+
```
105
+
106
+
This will:
107
+
- Create a new D1 database named `sonicjs-worktree-<branch-name>`
108
+
- Apply all migrations
109
+
- Update `wrangler.toml` with the new database ID
110
+
97
111
#### Working with Database Migrations
98
112
99
113
When developing the core package, migrations are located in `packages/core/migrations/`. Your test app will reference these migrations through the npm workspace symlink.
0 commit comments