Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InitialTenantDbMigration #10

Open
PiotrFerenc opened this issue May 16, 2019 · 2 comments
Open

InitialTenantDbMigration #10

PiotrFerenc opened this issue May 16, 2019 · 2 comments

Comments

@PiotrFerenc
Copy link

PiotrFerenc commented May 16, 2019

Where can i find migration for tenant?
or
How to create own migration for tenant?

obraz

OK! Found!

dotnet ef migrations add InitialTenantDbMigration -c TenantDbContext -o Data/Migrations/NetCoreSaaS/TenantDb

@PiotrFerenc
Copy link
Author

but my tenant doesn't have all columns
obraz

@janaks09
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants