Skip to content

Commit

Permalink
airflow: db upgrade is now deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
rsebille committed Jun 19, 2024
1 parent 72e4461 commit e91de0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: ⚙ Setup airflow database
run: |
airflow db reset --yes
airflow db upgrade
airflow db migrate
env:
AIRFLOW__CORE__FERNET_KEY: U7sOUkZeQ6JGmwQoG6anMTdnl_nzy4f74IFkNmMeW50=
AIRFLOW__DATABASE__SQL_ALCHEMY_CONN: postgresql://postgres:password@localhost:5432/airflow
Expand Down
2 changes: 1 addition & 1 deletion custom-dev-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -o allexport
source .env-base
set +o allexport

airflow db upgrade
airflow db migrate
airflow variables import dag-variables.json

airflow users create \
Expand Down
2 changes: 1 addition & 1 deletion custom-prod-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set +o allexport

export AIRFLOW__DATABASE__SQL_ALCHEMY_CONN="${POSTGRESQL_ADDON_URI//\"/}"

airflow db upgrade
airflow db migrate

if [[ "x$CELLAR_ADDON_HOST" != "x" ]]; then
export AIRFLOW_CONN_LOG_CONNECTION="aws://@/?endpoint_url=https%3A%2F%2F${CELLAR_ADDON_HOST//\"/}&region_name=eu-west-1&aws_access_key_id=${CELLAR_ADDON_KEY_ID//\"/}&aws_secret_access_key=${CELLAR_ADDON_KEY_SECRET//\"/}"
Expand Down

0 comments on commit e91de0b

Please sign in to comment.