@cambria-packages/ozone-db
v1.14.0
Published
### Development
Readme
ozone-db
Development
Setup local database
Assuming you have docker-compose and make installed:
- Edit
Makefilevariables with the production db data. - Create and run local db:
make up - Dump db from production:
make dump - Restore dump into local db:
make restore - Setup .env.local file with variables of your localhost db (renaming .env.example should be enough unless you changed something in your local server)
- Write a migration in
migrationsfolder keeping the chronological order. - Test your migration locally with
bun migrate. - Commit changes in a PR.
- After merge production db will be migrated.
