This is an automated email from the ASF dual-hosted git repository.
ephraimanierobi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 5ed3f49a7a Make migrations path relative to ini (#42381)
5ed3f49a7a is described below
commit 5ed3f49a7a9e6401e45743216a12b385fe053d4f
Author: Daniel Standish <[email protected]>
AuthorDate: Fri Sep 20 11:10:57 2024 -0700
Make migrations path relative to ini (#42381)
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.
---
airflow/alembic.ini | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airflow/alembic.ini b/airflow/alembic.ini
index 988fa234ee..6360db5eb9 100644
--- a/airflow/alembic.ini
+++ b/airflow/alembic.ini
@@ -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