inspira icon indicating copy to clipboard operation
inspira copied to clipboard

Add Support for --up Flag in Migration Process

Open Khaleelhabeeb opened this issue 10 months ago • 1 comments

feat: Add support for --up flag in migration process

  • Updated migrations.py to handle the --up flag for running upward migrations.
  • Modified cli.py to include a --up flag in the migrate command, allowing users to specify migration direction.
  • Ensured that the default behavior of the inspira_migrate command is to run down migrations unless the --up flag is provided.
  • Checked for mutual exclusivity between --up and --down flags to avoid conflicting directions.

These changes allow users to easily specify migration direction using the --up flag, " inspira_migrate --up" will run up migrations fixes issues #72

Khaleelhabeeb avatar Apr 11 '24 09:04 Khaleelhabeeb