1
0
forked from noxious/server

Updated commands

This commit is contained in:
Dennis Postma 2025-02-14 23:11:34 +01:00
parent 3f8d36db5a
commit 2ce9bbdedd

View File

@ -39,15 +39,15 @@ MikroORM is used as the ORM for the server.
### Create init. migrations
Run `npx mikro-orm-esm migration:create --initial` to create a new initial migration.
Run `npm run mikro-orm migration:create --initial` to create a new initial migration.
### Create migrations
Run `npx mikro-orm-esm migration:create` to create a new migration. You do this when you want to add a new table or change an existing one.
Run `npm run mikro-orm migration:create` to create a new migration. You do this when you want to add a new table or change an existing one.
### Apply migrations
Run `npx mikro-orm-esm migration:up` to apply all pending migrations.
Run `npm run mikro-orm migration:up` to apply all pending migrations.
### Import default data