chore(auth): drop the Postgres provider, run SQLite only (#44) #45
No reviewers
Labels
No labels
alpha:wave-0
alpha:wave-1
alpha:wave-2
alpha:wave-3
area:assets
area:combat
area:ecology
area:infra
area:render
area:scripting
area:ui
area:world
enhancement
epic
migration
post-alpha
roadmap
tech-debt
type:bug
type:chore
type:design
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
marco/IsoMmo!45
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/auth-sqlite-only"
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?
Closes #44.
Auth commits to SQLite only (a single embedded file, no server) instead of the dual-provider setup. Design review concluded that moving Auth to binary files was not worth it (queries by username, needs atomic world-wide uniqueness, security-sensitive, deeply coupled to ASP.NET Identity, stable schema so no migration tax to escape) — but the second DB provider was pure overhead, so dropping Postgres captures the whole no-DB-server benefit at zero risk.
PostgresAuthDbContext+ itsData/Migrations/Postgres/tree and theNpgsqlpackage.Database:Providerswitch — always SQLite (Database.Migrate()unchanged).Database:Providerconfig key.just migrate-auth: one SQLite migration (verified it generates exactly one, no Postgres).AuthDbContext(abstract) +SqliteAuthDbContext(concrete, existing migrations) — no migration regeneration, so the:memory:test factory and existing migrations work untouched.CLAUDE.md,docs/architecture.md(also fixed a staleGameDbContextmention),docs/deploy.md,README.md.Whole suite green (Auth 12/12 on SQLite
:memory:), 0 warnings, csharpier clean.Definition of Done
postgres/npgsql/Database:Providerreferences remain (only a historical note in architecture.md).just migrate-auth <Name>produces exactly one SQLite migration, no Postgres.Database.Migrate()createsisommo-auth.db; silent account creation + character uniqueness still pass (Auth integration tests green on SQLite:memory:).Database:Provider.CLAUDE.md,docs/architecture.md,docs/deploy.md,README.mddescribe Auth as SQLite-only.