Skip to content

Commit

Permalink
Make migrations path relative to ini (apache#42381)
Browse files Browse the repository at this point in the history
This makes it so that we can alembic commands from the root repo dir.

E.g.

```
alembic -c airflow/alembic.ini revision --autogenerate -m "Do something"
```

Sometimes when running from airflow subfolder we get errors.
  • Loading branch information
dstandish authored and joaopamaral committed Oct 21, 2024
1 parent 2223fe5 commit 557a549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/alembic.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

[alembic]
# path to migration scripts
script_location = migrations
script_location = %(here)s/migrations

# template used to generate migration files
# file_template = %%(rev)s_%%(slug)s
Expand Down

0 comments on commit 557a549

Please sign in to comment.