sghorbal commited on
Commit
6ef084a
·
1 Parent(s): 4eab157

solve "'db' is deprecated" warning

Browse files
Files changed (1) hide show
  1. entrypoint.sh +2 -1
entrypoint.sh CHANGED
@@ -52,7 +52,8 @@ pgbouncer /etc/pgbouncer/pgbouncer.ini &
52
  export AIRFLOW__DATABASE__SQL_ALCHEMY_CONN=postgresql+psycopg2://${AF_USER}:${AF_PASS}@127.0.0.1:6432/airflow_db
53
 
54
  # Init DB if needed
55
- airflow db init
 
56
 
57
  # Create a superuser if it doesn't exist
58
  airflow users create \
 
52
  export AIRFLOW__DATABASE__SQL_ALCHEMY_CONN=postgresql+psycopg2://${AF_USER}:${AF_PASS}@127.0.0.1:6432/airflow_db
53
 
54
  # Init DB if needed
55
+ airflow db migrate
56
+ airflow connections create-default-connections
57
 
58
  # Create a superuser if it doesn't exist
59
  airflow users create \