Migrations on SQLite run without four "cannot be executed in a transaction" warnings #21
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#21
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Why
The table-rebuild migrations emit
PRAGMA foreign_keys = 0, which SQLite cannot run inside atransaction, so EF Core logs four Warnings on a fresh install (RP-1 on Linux; RP-3w found the same
four as the first entries in the Windows Application log). They describe EF behaviour, not a
problem with the database.
What changes
src/dotnet/src/Ninlil.Dns.Data.EntityFrameworkCore/Extension/DbContextOptionsBuilderExtension.cs:46-60(
UseNinlilDnsSqlite): log that one event id (the EF Core warning for a migration operation thatcannot run in a transaction; name the exact
RelationalEventIdmember) at Debug, asQuietCommandLogging(:184-187) does forCommandExecuted, with a comment saying why it issafe (the migrator snapshots the file first,
Storage:MigrationSafety).Acceptance
src/dotnet/tests/Ninlil.Dns.Data.Integration.Tests(SQLite, no Docker) migratesa new file with a capturing logger and asserts no Warning from
Microsoft.EntityFrameworkCore.Migrations(fails first with 4).Source
release-prep.md:21(RP-1 nits),release-prep.md:133(RP-3w event log entries).Ghost referenced this issue2026-11-05 05:59:59 -05:00