mirror of
https://github.com/spacebarchat/docs.git
synced 2024-11-22 10:12:31 +01:00
no extension for typeorm migration generation
This commit is contained in:
parent
1707d2028d
commit
c42c4b455c
@ -14,7 +14,7 @@ To generate a database migration in fosscord-server:
|
|||||||
You can run the server or run [`npm run sync:db`](../../setup/server/npmScripts.md#syncdb).
|
You can run the server or run [`npm run sync:db`](../../setup/server/npmScripts.md#syncdb).
|
||||||
2. Switch to branch/commit you want to migrate _to_, and run
|
2. Switch to branch/commit you want to migrate _to_, and run
|
||||||
```
|
```
|
||||||
npm run generate:migration -- src/util/migrations/:dbms:/:migrationName:.ts
|
npm run generate:migration -- src/util/migrations/:dbms:/:migrationName:
|
||||||
```
|
```
|
||||||
where `:dbms:` is the db you use, and `:migrationName:` is whatever you wish to call it.
|
where `:dbms:` is the db you use, and `:migrationName:` is whatever you wish to call it.
|
||||||
The migration must be named a valid Javascript class name.
|
The migration must be named a valid Javascript class name.
|
||||||
|
Loading…
Reference in New Issue
Block a user