Ticket created by ~andyhsu on ~olly/yoyo
I'm trying to apply a single migration at a time using the 'yoyo apply --one ONE' command, but it applies all unapplied migrations instead. This behavior occurs with both the '-1' and '--one' flags. I also tried replacing the 'ONE' argument with the migration ID of the next migration in case I have the command syntax wrong, but the result is still the same.
yoyo$ yoyo list STATUS ID SOURCE -------- --------------------------------------------- ---------------------------------------------------------------------- A 20211004_01_VW7Ac-customers-table /Users/yoyo/migrations A 20211004_02_iVM1r-customers-data-of-birth /Users/yoyo/migrations A 20211004_03_wVuB6-dob-not-null /Users/yoyo/migrations A 20211004_04_NL8PL-dob-default-now /Users/yoyo/migrations A 20211004_05_hmRkP-rename-date-of-birth-to-dob /Users/yoyo/migrations A 20211004_06_dBtG7-orders-table /Users/yoyo/migrations U 20211004_07_MLTCJ-orders-drop-constraint /Users/yoyo/migrations U 20211004_08_2Atkm-3-new-tables /Users/yoyo/migrations yoyo$ yoyo apply --one ONE INFO:yoyo.migrations:Applying 20211004_07_MLTCJ-orders-drop-constraint INFO:yoyo.migrations: - applying step 0 INFO:yoyo.migrations:Marking 20211004_07_MLTCJ-orders-drop-constraint applied INFO:yoyo.migrations:Applying 20211004_08_2Atkm-3-new-tables INFO:yoyo.migrations: - applying step 0 INFO:yoyo.migrations: - applying step 1 INFO:yoyo.migrations: - applying step 2 INFO:yoyo.migrations:Marking 20211004_08_2Atkm-3-new-tables applied yoyo$ yoyo list STATUS ID SOURCE -------- --------------------------------------------- ---------------------------------------------------------------------- A 20211004_01_VW7Ac-customers-table /Users/yoyo/migrations A 20211004_02_iVM1r-customers-data-of-birth /Users/yoyo/migrations A 20211004_03_wVuB6-dob-not-null /Users/yoyo/migrations A 20211004_04_NL8PL-dob-default-now /Users/yoyo/migrations A 20211004_05_hmRkP-rename-date-of-birth-to-dob /Users/yoyo/migrations A 20211004_06_dBtG7-orders-table /Users/yoyo/migrations A 20211004_07_MLTCJ-orders-drop-constraint /Users/yoyo/migrations A 20211004_08_2Atkm-3-new-tables /Users/yoyo/migrations