potiuk edited a comment on issue #21457: URL: https://github.com/apache/airflow/issues/21457#issuecomment-1034818729
> I actually followed the [Docker Quickstart](https://airflow.apache.org/docs/apache-airflow/stable/start/docker.html) and not the standalone one. Thus, I didn't saw the `db init` command. Although, I just had a look at it and it rather seems to be for initializing the postgres Backend, right? I was talking about how to explicitly create the `Employee` tables from the tutorial, which I did with the `cur.execute('''CREATE TABLE "Employees ...")` method. Is there another way to do it in a Docker environment? Actually there IS a better way! We have the command: ``` airflow db shell ``` That drops you into the DB command line environment that is configured. So you could - I think - even redirect a creation script to the command - that would be much nicer, because it could be done as a single command: ``` airflow db shell <<EOF CREATE .... EOF -- 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]
