1
0
mirror of https://github.com/spacebarchat/docs.git synced 2024-11-25 19:52:28 +01:00

no extension for typeorm migration generation

This commit is contained in:
Madeline 2023-01-16 00:00:08 +11:00
parent 1707d2028d
commit c42c4b455c
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

View File

@ -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).
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.
The migration must be named a valid Javascript class name.