Skip to content

Commit

Permalink
added info about database migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
nextguyover committed Aug 2, 2024
1 parent 582d14b commit e5bc751
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/development/database-schema-changes/index.md
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
```
2 changes: 2 additions & 0 deletions docs/development/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Confab Development

!!! info "This section of the documentation is intended for developers"

## Setting Up Dev Environment

### 1. Backend
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ nav:
- config/index.md
- Development:
- development/index.md
- Database Schema Changes: development/database-schema-changes/index.md
- About:
- Design Philosophy: about/design.md
- Future Roadmap: about/roadmap.md
Expand Down

0 comments on commit e5bc751

Please sign in to comment.