From 5969a9d437cf45c2ccf88c3fe7ff235981f5bcb1 Mon Sep 17 00:00:00 2001 From: Leendert de Borst Date: Mon, 4 Aug 2025 21:22:48 +0200 Subject: [PATCH] Update Entity Framework docs (#1075) --- docs/misc/dev/upgrade-ef-server-model.md | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/docs/misc/dev/upgrade-ef-server-model.md b/docs/misc/dev/upgrade-ef-server-model.md index 4575f4634..712a753bc 100644 --- a/docs/misc/dev/upgrade-ef-server-model.md +++ b/docs/misc/dev/upgrade-ef-server-model.md @@ -8,15 +8,8 @@ nav_order: 6 # Upgrade the AliasServerDb EF model -The AliasServerDb EF model has migrations for both the SQLite and PostgreSQL databases. This means -that when you make changes to the EF model, you need to create migrations for both databases. +The below command allows you to create a new EF migration based on the existing database structure as defined in the EF mode classes. -1. Make migration for PostgreSQL database: ```bash -dotnet ef migrations add InitialMigration --context AliasServerDbContextPostgresql --output-dir Migrations/PostgresqlMigrations -``` - -2. Make migration for SQLite database: -```bash -dotnet ef migrations add InitialMigration --context AliasServerDbContextSqlite --output-dir Migrations/SqliteMigrations +dotnet ef migrations add InitialMigration --output-dir Migrations/PostgresqlMigrations ```