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
| #!/bin/bash | |
| # ============================================================================== | |
| # Git Branch Switch with Safe Django Migrations | |
| # ============================================================================== | |
| # This script automates switching between Git branches in a Django project | |
| # while handling database migrations safely. | |
| # | |
| # It: | |
| # - Compares Django migrations between the current and target branches. | |
| # - Reverts apps to the last common migration if migrations diverged. |