docs: add database schema update instructions to README

This commit is contained in:
Aidan 2025-03-03 21:35:34 -05:00
parent 6f341bbd7a
commit 671fa7a401

View File

@ -186,6 +186,17 @@ We suggest starting by allowing Auth.js
| AUTH_TRUST_HOST | Required, should always be set to `true` | `true` | | AUTH_TRUST_HOST | Required, should always be set to `true` | `true` |
| NEXTAUTH_URL | The URL LibreCloud will be publicly accessible at | `http://localhost:3000` (testing), `https://example.com` (production) | | NEXTAUTH_URL | The URL LibreCloud will be publicly accessible at | `http://localhost:3000` (testing), `https://example.com` (production) |
## Database schema updates
In case of an update to `prisma/schema.prisma`, you should run the below command to migrate the old database.
Each update to this file is guaranteed to work with the previous version of the file to ensure maximum compatibility. While every effort has been made to ensure compatibility, we are not responsible for any data loss.
```bash
npx prisma migrate dev --name update-schema # Migrate
npx prisma migrate deploy # Deploy
```
## To-Do ## To-Do
* [X] Add documentation on .env * [X] Add documentation on .env