yes, one particular approach to this issue is discussed here: https://alembic.sqlalchemy.org/en/latest/front.html#installation start with that if nothing else is working (There are many ways to do this).
On Tue, May 10, 2022, at 5:34 AM, Ilya Demidov wrote: > Hi! > > I have some problem. I need to add new field in table and populate it by some > default data. I can not hardcode it because it different in debug and > production enviroment. I want to store data in some "config file". The > problem is migration does not see my modules. > > ├───alembic │ > ├───versions │ > ├───first_migration.py │ > ├───second_migration.py │ > ├─── migration_data.py > > If I import from alembic. migration_data import SOME_DATA it throws import > error while migrating. > Any good pratice, how can I store migration data? Thanks for advices. > > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy-alembic" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sqlalchemy-alembic+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sqlalchemy-alembic/b809c48a-fe48-4323-96ad-fa4efbe0e6bdn%40googlegroups.com > > <https://groups.google.com/d/msgid/sqlalchemy-alembic/b809c48a-fe48-4323-96ad-fa4efbe0e6bdn%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "sqlalchemy-alembic" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy-alembic+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sqlalchemy-alembic/1fd9c5e3-85aa-4227-9d36-779a46e97de1%40www.fastmail.com.