Warning: Version 005 already applied with different contentExisting SHA256: abc123...New SHA256: xyz789...
Cause: Migration file content changed for an existing version.Impact: File is skipped (idempotent behavior), but indicates inconsistency.Solutions:Option 1: Accept the difference (if intentional)
Document why content differs
Verify both versions produce same schema
No action needed (file will be skipped)
Option 2: Fix the inconsistency (recommended)
Revert file to original content
Create new migration with changes:
Copy
Ask AI
-- 006__fix_previous_migration.sql-- Corrects issue from migration 005ALTER TABLE ...
Never modify deployed migrations. Always create new migrations for fixes.
Release 'projects/my-project/releases/old-release' has no unapplied migrations
Cause: Plan references release where all migrations already applied.Expected Behavior: This is normal if all migrations are already deployed.Solutions:If migrations should be unapplied:
Check revision records on target database:
Copy
Ask AI
curl -X GET "$BB_URL/v1/instances/prod/databases/app_db/revisions" \ -H "Authorization: Bearer $BB_TOKEN"
Verify versions in release match:
Copy
Ask AI
curl -X GET "$BB_URL/v1/projects/my-project/releases/old-release" \ -H "Authorization: Bearer $BB_TOKEN"