Files
CMS/src/CMSMicroservice.Infrastructure/Persistence/ApplicationDbContextInitialiser.cs
masoud 1dbe90d020
All checks were successful
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 2m9s
fix: Use EnsureCreatedAsync instead of MigrateAsync for initial db setup
- EnsureCreatedAsync creates db only if it doesn't exist
- Returns false if db already exists (idempotent)
- Prevents 'CMS.mdf already exists' error
- Still applies pending migrations when needed
2025-12-07 21:21:47 +00:00

6.4 KiB