Skip to content

Fix init to stamp pre-existing migrations as complete#18

Merged
cmtonkinson merged 1 commit intomainfrom
claude/fix-init-migrations-TWMGM
Feb 16, 2026
Merged

Fix init to stamp pre-existing migrations as complete#18
cmtonkinson merged 1 commit intomainfrom
claude/fix-init-migrations-TWMGM

Conversation

@cmtonkinson
Copy link
Owner

When governator init creates a fresh project, migrations that predate
the initialization are irrelevant — init already creates the files those
migrations would produce. Without stamping them, governator start
would prompt the user to apply migrations that don't matter, including
destructive ones that could confuse or alarm the operator.

Add StampExistingMigrations to write .done markers for all known
migrations during init, so only future migrations are surfaced as
pending.

Fixes #15

https://claude.ai/code/session_01YP18fb8HhLNzzfEASm1t8e

When `governator init` creates a fresh project, migrations that predate
the initialization are irrelevant — init already creates the files those
migrations would produce. Without stamping them, `governator start`
would prompt the user to apply migrations that don't matter, including
destructive ones that could confuse or alarm the operator.

Add `StampExistingMigrations` to write `.done` markers for all known
migrations during init, so only future migrations are surfaced as
pending.

Fixes #15

https://claude.ai/code/session_01YP18fb8HhLNzzfEASm1t8e
@cmtonkinson
Copy link
Owner Author

This fixes #15 and fixes #17

@cmtonkinson cmtonkinson merged commit d1eb0af into main Feb 16, 2026
2 checks passed
@cmtonkinson cmtonkinson deleted the claude/fix-init-migrations-TWMGM branch February 16, 2026 03:02
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.

State lives outside the project dir?

2 participants