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

Optional migration and no auto db creation #104

Merged
merged 2 commits into from
Jan 21, 2024

Conversation

Nfactor26
Copy link
Owner

Description
Removed call for context.Database.EnsureCreatedAsync(); so that database is not created automatically. A new configuration flag 'AutoMigrate' is added with default value of false that can apply migrations automatically. This will be useful for dev/ci-cd environments and to quickly spin up containers. SQL migration scripts should be used for actual production use case.

Removed call for context.Database.EnsureCreatedAsync(); so that database is not created automatically. A new configuration flag 'AutoMigrate' is added with default value of false that can apply migrataions automatically. This will be useful for dev/ci-cd environments and to quickly spin up containers. Sql migration scripts should be used for actual production usecase.
@Nfactor26 Nfactor26 self-assigned this Jan 21, 2024
@Nfactor26 Nfactor26 added the Feature Add a new feature label Jan 21, 2024
@Nfactor26 Nfactor26 merged commit e0e0ea4 into main Jan 21, 2024
3 of 5 checks passed
@Nfactor26 Nfactor26 deleted the optional-migration-and-no-auto-db-creation branch January 21, 2024 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Add a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant