1
0
mirror of https://github.com/spacebarchat/docs.git synced 2024-11-25 03:33:05 +01:00

code review

This commit is contained in:
Madeline 2023-01-12 23:58:28 +11:00
parent c69d3fa045
commit 8c5287d50d
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

View File

@ -16,7 +16,8 @@ To generate a database migration in fosscord-server:
```
npm run generate:migration -- src/util/migrations/:dbms:/:migrationName:.ts
```
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.
3. The generated file is what TypeORM will do if you were to run `npm run sync:db`.
Obviously, this is not always what you want. Edit it to preserve as much of the original data as possible.