-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added info about database migrations
- Loading branch information
1 parent
582d14b
commit e5bc751
Showing
3 changed files
with
20 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Database Schema Changes | ||
|
||
!!! info "This section of the documentation is intended for developers" | ||
|
||
[EF Core database migrations](https://learn.microsoft.com/en-us/ef/core/managing-schemas/migrations/) are used to allow existing Confab databases to be updated alongside the database schema (as new features are added in future Confab versions). This page covers the database migration steps that should be performed any time the database schema is changed. | ||
|
||
Provided commands below should be run in the Visual Studio Package Manager Console (the .NET Core CLI can also be used). | ||
|
||
## Creating a Migration | ||
|
||
A new database migration should be created after any database schema changes. Replace `MigrationName` with a descriptive name for this migration. | ||
|
||
``` | ||
Add-Migration MigrationName | ||
``` |
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
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