diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f57b57a..612da45 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -127,13 +127,13 @@ The application uses [SQLite3](https://www.npmjs.com/package/better-sqlite3) as Migrations are stored in [src/main/migrations](src/main/migrations) and handled by typeorm. Migrations are run on first database connection inside [database.ts](src/main/core/database.ts). To auto-generate a migration: -`node_modules/.bin/typeorm migration:generate -n -c ` +`npx typeorm migration:generate -n -c ` To create an empty creation which can be filled with custom migration code: -`node_modules/.bin/typeorm migration:create -n -c ` +`npx typeorm migration:create -n -c ` To run migrations: -`node_modules/.bin/typeorm migration:run -c ` +`npx typeorm migration:run -c ` This is also pre-defined in the npm script `typeorm:migrate`. For now you need to `npm rebuild` better-sqlite3 for your local node version to run these since there is no easy way to make them work inside electron. Don't forget to run `npm run rebuild` after to rebuild for electron again.