Skip to content

Development#12

Merged
CatFortman merged 3 commits into
mainfrom
development
Jul 17, 2026
Merged

Development#12
CatFortman merged 3 commits into
mainfrom
development

Conversation

@CatFortman

Copy link
Copy Markdown
Owner

Merge dev into main

Transactions — each script/migration now runs inside its own SqlTransaction: the SQL execution and the __MigrationHistory/__ScriptHistory insert are committed atomically together, or rolled back together on any error. Since the failure still throws (halting the whole batch, per the earlier work), a partial migration can no longer leave a script half-applied but recorded — or applied but not recorded, which would've caused it to be retried and reapplied non-idempotently next run.

Secrets handling — connection strings are now resolved through three layers, lowest to highest precedence: the committed dbconfig.json template → an optional git-ignored Configurations/dbconfig.local.json for a developer's own local secrets → environment variables (e.g. Databases__Db1__ConnectionString) for CI/CD. Added the Microsoft.Extensions.Configuration.EnvironmentVariables package, updated .gitignore to exclude dbconfig.local.json, wired the csproj to copy it to output only when present, and documented the whole scheme in the README.
…-transactions

Feature/improve config and add transactions
@CatFortman
CatFortman merged commit 364ecdc into main Jul 17, 2026
1 check passed
@CatFortman
CatFortman deleted the development branch July 18, 2026 00:00
@CatFortman
CatFortman restored the development branch July 18, 2026 00:00
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.

1 participant