Skip to content

Slice 2a Plan 1: PostgreSQL + migrations + native test harness#31

Merged
malinfossum merged 3 commits into
mainfrom
feature/slice2a-postgres-native
Jul 11, 2026
Merged

Slice 2a Plan 1: PostgreSQL + migrations + native test harness#31
malinfossum merged 3 commits into
mainfrom
feature/slice2a-postgres-native

Conversation

@malinfossum

Copy link
Copy Markdown
Collaborator

Implements Plan 1 (revised) — moves persistence from SQLite to PostgreSQL and adopts EF Core migrations, with no behaviour change. No Docker anywhere: native Postgres locally, a Postgres service container on CI.

Changes (3 commits)

  1. Move persistence to PostgreSQL — SQLite→Npgsql in Wend.Core; the app reads ConnectionStrings:WendDb. API integration tests create/drop their own throwaway database per test on the Postgres server (fixture also drops orphans at run start); repository unit tests stay on in-memory SQLite.
  2. Adopt EF Core migrationsInitialCreate committed; startup EnsureCreated()Migrate().
  3. CI + docs — CI job gains a postgres:17-alpine service container + WEND_TEST_PG; README documents the native Postgres dev setup.

Verification

  • dotnet test147 passed, 0 failed, 0 skipped.
  • dotnet build -c Release0 warnings, 0 errors.
  • Migrations round-trip: database update applies InitialCreate cleanly (Boards, Lists, Cards, Labels, CardLabels, ChecklistItems + __EFMigrationsHistory).
  • Manual acceptance: created a board, restarted the app, confirmed it persisted in PostgreSQL, then cleaned up.

Plan: docs/plans/2026-07-11-slice2a-postgres-native.md. Establishes the engine + migrations foundation for Plan 2 (Identity + WendUser + per-user scoping).

@malinfossum
malinfossum merged commit 5071a63 into main Jul 11, 2026
1 check passed
@malinfossum
malinfossum deleted the feature/slice2a-postgres-native branch July 11, 2026 17:08
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