Skip to content

feat: add snapshot-based backup before destructive database migrations - #810

Open
lauferuqquyah wants to merge 1 commit into
RevoraOrg:masterfrom
lauferuqquyah:feat/migration-snapshot
Open

feat: add snapshot-based backup before destructive database migrations#810
lauferuqquyah wants to merge 1 commit into
RevoraOrg:masterfrom
lauferuqquyah:feat/migration-snapshot

Conversation

@lauferuqquyah

Copy link
Copy Markdown

📌 Summary

Adds an automated database snapshot mechanism before running destructive migrations to prevent data loss and ensure quick recovery if a migration fails.


🔍 What Changed?

  • Added a pre-migration check/step to automatically capture a database snapshot before applying schema changes.
  • Ensured the migration process halts if the snapshot creation fails.

🧪 How to Test

  1. Run the migration script locally/in staging.
  2. Verify that a snapshot is created successfully before schema updates are applied.
  3. Verify that migrations proceed normally after a successful snapshot.

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