This repository has been archived by the owner on Mar 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/dotnet-8
- Loading branch information
Showing
1 changed file
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,27 @@ | ||
# POI | ||
# POI | ||
|
||
## Setup | ||
|
||
### Migrations | ||
Create a new migration to update the database schema with your new changes: | ||
|
||
```bash | ||
dotnet ef migrations add "[New Migration Name]" --project POI.Persistence.EFCore.Npgsql --verbose | ||
``` | ||
|
||
Apply all generated migrations on your database: | ||
|
||
```bash | ||
dotnet ef database update --project POI.Persistence.EFCore.Npgsql --verbose -- "[Connection String]" | ||
``` | ||
|
||
Find all migrations in the `POI.Persistence.EFCore.Npgsql/Migrations` folder. | ||
|
||
### Environment Variables | ||
|
||
| Variable | Description | Example | | ||
|--------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------| | ||
| `ConnectionStrings:PostgreSQL` | Connection string for **PostgreSQL** database ([tutorial](https://www.commandprompt.com/education/how-to-create-a-postgresql-database-in-docker/)) | `Host=localhost;Port=5432;Database=poi_test_db;Username=postgres;Password=password` | | ||
| `Discord:Prefix` | Prefix for bot chat commands | `poi` | | ||
| `Discord:Token` | Token for your Discord bot ([tutorial](https://www.writebots.com/discord-bot-token/)) | `xxxx.xxxx.xxxx` | | ||
| `Paths:DataFolderPath` | Path to folder where data files like image assets and logs can be stored | `C:\your-path\POI\Data` | |