Skip to content

Add snapshot-based rollback backup step in db/migrate.ts - #798

Open
lauferuqquyah wants to merge 1 commit into
Veritasor:mainfrom
lauferuqquyah:feat/snapshot-rollback-572
Open

Add snapshot-based rollback backup step in db/migrate.ts#798
lauferuqquyah wants to merge 1 commit into
Veritasor:mainfrom
lauferuqquyah:feat/snapshot-rollback-572

Conversation

@lauferuqquyah

@lauferuqquyah lauferuqquyah commented Aug 5, 2026

Copy link
Copy Markdown

Description

This change introduces an automated snapshot-based backup step before running destructive database migrations. Before any migration that may modify or remove existing data is executed, the migration process requests a logical database snapshot from the configured provider.

If the snapshot is created successfully, the snapshot ID is recorded in the audit log and the migration proceeds. If the snapshot request fails, the migration is aborted to prevent potential data loss.

This enhancement improves the reliability and safety of the migration process by ensuring a recovery point is available before destructive schema changes are applied.

Closes #572

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.

Add snapshot-based rollback backup step in db/migrate.ts

1 participant