cleanup: finish retired-schema forward cleanup coverage #359

Closed
opened 2026-05-11 21:02:05 +00:00 by barrettruth · 0 comments
Owner

Parent: #355

Problem

The compact migration baseline tracks retired schema names in tests, but the deployed-schema cleanup path only creates/drops a subset of retired tables. If any retired table exists on a deployed database, the forward cleanup should remove it deliberately.

Solution

Add a new forward migration if the existing deployed cleanup may already be applied:

  • do not rewrite already-merged migration history
  • drop any remaining retired tables from the canonical retired list
  • extend deployed-schema migration tests to include every retired table and assert all are gone

Acceptance criteria

  • The deployed cleanup path removes all retired login/reminder/share/system-config/keymap tables listed by schema tests.
  • Fresh baseline remains unchanged except for new journal metadata as needed.
  • Schema tests cover the forward path.
Parent: #355 ## Problem The compact migration baseline tracks retired schema names in tests, but the deployed-schema cleanup path only creates/drops a subset of retired tables. If any retired table exists on a deployed database, the forward cleanup should remove it deliberately. ## Solution Add a new forward migration if the existing deployed cleanup may already be applied: - do not rewrite already-merged migration history - drop any remaining retired tables from the canonical retired list - extend deployed-schema migration tests to include every retired table and assert all are gone ## Acceptance criteria - The deployed cleanup path removes all retired login/reminder/share/system-config/keymap tables listed by schema tests. - Fresh baseline remains unchanged except for new journal metadata as needed. - Schema tests cover the forward path.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/delta#359
No description provided.