Skip to content

Enable EF database migrations and advanced persistence configuration#5613

Open
johnsimons wants to merge 1 commit into
masterfrom
john/more_core_things
Open

Enable EF database migrations and advanced persistence configuration#5613
johnsimons wants to merge 1 commit into
masterfrom
john/more_core_things

Conversation

@johnsimons

Copy link
Copy Markdown
Member

Allows ServiceControl to automatically apply EF Core database migrations during the setup command.
Configures EF Core to use retry-on-failure for transient errors, enhancing database connection stability.
Adds an option to enable sensitive data logging for debugging purposes.
Switches from AddPooledDbContextFactory to AddDbContext for direct DbContext access and improved flexibility.

Allows ServiceControl to automatically apply EF Core database migrations during the `setup` command.
Configures EF Core to use retry-on-failure for transient errors, enhancing database connection stability.
Adds an option to enable sensitive data logging for debugging purposes.
Switches from `AddPooledDbContextFactory` to `AddDbContext` for direct `DbContext` access and improved flexibility.
@johnsimons johnsimons requested a review from rbev July 16, 2026 07:02
@johnsimons johnsimons self-assigned this Jul 16, 2026
{
public async Task ApplyMigrations(CancellationToken cancellationToken = default)
{
logger.LogInformation("Starting SQL Server database migration");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the log messages these are identical - could they go in the shared code?
Don't the manifest settings end up in the container so you could format the log strings out of that?

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

Successfully merging this pull request may close these issues.

2 participants