I have a schema that has been diffed to create a migration. When I run the diff subsequently, the generated migration contains all of the function statements already contained in the original migration. This behaviour occurs repeatedly.
Note that 20230401_0818.sql and 20230401_0819.sql are identical files and contain all of the CREATE OR REPLACE FUNCTION statements already contained in 20230401_0817.sql
Possibly relevant: I get an SQLAlchemy warning when running the diff
RemovedIn20Warning: Deprecated API features detected! These feature(s) are not compatible with SQLAlchemy 2.0. To prevent incompatible upgrades prior to updating applications, ensure requirements files are pinned to "sqlalchemy<2.0". Set environment variable SQLALCHEMY_WARN_20=1 to show all deprecation warnings. Set environment variable SQLALCHEMY_SILENCE_UBER_WARNING=1 to silence this message. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
result = self.c.execute(*args, **kwargs)
I have a schema that has been diffed to create a migration. When I run the diff subsequently, the generated migration contains all of the function statements already contained in the original migration. This behaviour occurs repeatedly.
Steps to reproduce:
Note that
20230401_0818.sql
and20230401_0819.sql
are identical files and contain all of theCREATE OR REPLACE FUNCTION
statements already contained in20230401_0817.sql
Possibly relevant: I get an SQLAlchemy warning when running the diff