chore: implement migration drift detection, CI rules, and duplicate c…#787
Open
VictorEzenma wants to merge 4 commits into
Open
chore: implement migration drift detection, CI rules, and duplicate c…#787VictorEzenma wants to merge 4 commits into
VictorEzenma wants to merge 4 commits into
Conversation
|
@VictorEzenma Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…leanup
closes #423
Description
This PR implements automated drift detection and strict ownership rules for our database migrations to prevent schemas from silently diverging between
backend/migrations/andsupabase/migrations/.Key changes include:
CONTRIBUTING.mdto clearly define domain ownership (Core/Frontend vs. Backend) and establish a unified 5-step migration workflow..github/workflows/migration-drift-check.yml) that runs the drift detection script automatically on pull requests to block duplicates or conflicts.cleanup:migrationscommand topackage.jsonand removed the 4 known redundant backend migrations (create_audit_logs.sql,create_renewal_tables.sql,create_team_invitations.sql,add_pause_columns.sql) to establish a clean slate for the CI.Related Issue
Test Plan
Screenshots (if applicable)
(N/A - Infrastructure and CI changes only)
Checklist
Checklist