mik-laj commented on issue #13679: URL: https://github.com/apache/airflow/issues/13679#issuecomment-762565884
> can you elaborate on what you meant here? Isn't it safe to say that as long as sql syntax is accurate, it will check for conn duplicates appropriately? We do not write SQL queries, but use an ORM that generates queries based on the model stored in the code. The model is identical to the database schema in most cases, so everything works fine. The problem arises when the model is different from the database schema because you have not done all the migrations. Then ORM can generate SQL queries that conform to the new database schema, but does not work properly with the older versions. This is just my guess and I am not sure if this is the cause of these problems. `airflow upgrade db` works fine if there are no entries in the database. If you would like to test it well, you should migrate the database version compatible with Airflow 1.10. Add a few entries, and then run database migrations to see if the problem was detected. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
