NetCoreSaaS
NetCoreSaaS copied to clipboard
InitialTenantDbMigration
Where can i find migration for tenant? or How to create own migration for tenant?

OK! Found!
dotnet ef migrations add InitialTenantDbMigration -c TenantDbContext -o Data/Migrations/NetCoreSaaS/TenantDb
but my tenant doesn't have all columns

@PiotrFerenc For Tenant migration Database.EnsureCreated(); will automatically create database + migration on that database. Regarding not all columns I need to check about the migration setup. Do you have project setup in GH?
Database.EnsureCreated(); is good for test environment but for production env, I would suggest you to use library/tool like DbUp to manage the scripts and migrations.