Migrations on SQLite run without the "cannot be executed in a transaction" warnings #289
No reviewers
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil!289
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/21-sqlite-migration-warnings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A fresh SQLite install no longer logs EF Core's "migration operation cannot be executed in a transaction" warnings. The table-rebuild migrations emit
PRAGMA foreign_keys = 0, which SQLite cannot run inside a transaction; the warning describes EF Core's behaviour, not a problem with the database.UseNinlilDnsSqlitelogsRelationalEventId.NonTransactionalMigrationOperationWarningat Debug, the same wayQuietCommandLoggingtreatsCommandExecuted. Only that one event id is affected, on SQLite only (runtime and design-time factory). Other migration warnings and other providers are unchanged.Storage:MigrationSafety:TakeSnapshotis off, and a fresh database has nothing to lose.Tests:
Sqlite/SqliteMigrationWarningTestsmigrates a new file throughRelationalStartupMigrator. It asserts that migration log entries exist and that none of them is a Warning.Ninlil.Dns.Data.Integration.Testspasses 81 tests.Closes #21
🤖 Generated with Claude Code
https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK