ephraimbuddy opened a new pull request, #62234:
URL: https://github.com/apache/airflow/pull/62234

   The `--use-migration-files` flag was removed in #41120 when we pruned the 
migration history for Airflow 3. At the time, we couldn't create a database 
from scratch using only migration files because the migration chain no longer 
started from an empty database. The oldest migration assumed an existing 2.6.2 
schema.
   
   Now that we have a squashed migration (0000_2_6_2) with `down_revision = 
None` that creates the full baseline schema from scratch, we can re-introduce 
this flag. This enables a critical development workflow, which is: creating the 
database purely from migration files, then using `alembic revision 
--autogenerate` to detect schema drift between the ORM models and the 
migration-produced schema. Without this flag, `autogenerate` compares against 
an ORM-created database (via `create_all`), which masks any drift since both 
sides come from the same ORM definitions.
   
    


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to