migration refactor for any plattform
This commit is contained in:
parent
7df7cf2697
commit
b3d1c2d729
4 changed files with 176 additions and 47 deletions
|
@ -23,8 +23,8 @@ Login is possible via Username and TOTP.
|
|||
|
||||
1. Install the database-system-package you like (e.g. mysql, mariadb, postgresql, sqlite3)
|
||||
2. Configure type inside src/data-source.ts to run the database-system you like.
|
||||
3. Set migrationsRun to false and synchronize to true. (Migrations are build to suit mysql)
|
||||
3. Set migrationsRun to false and synchronize to true for rapid prototyping
|
||||
4. Building the schema via CLI:
|
||||
- Run `npm run update-database` to build the schema using the migrations without starting the application
|
||||
- Run `npm run synchronize-database` to build the schema without using migrations without starting the application
|
||||
5. Run `npm run dev` to run inside dev-environment
|
||||
5. Run `npm run dev` to run inside dev-environment (runs migrations if migrationsRun is set to true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue