Skip to content

Name error when using a custom type imported from another file. #1517

Answered by zzzeek
0x1618 asked this question in Usage Questions
Discussion options

You must be logged in to vote

hi -

check out the docs at https://alembic.sqlalchemy.org/en/latest/autogenerate.html#controlling-the-module-prefix. you want to add the imports you need for all your custom types to script.py.mako and then set user_module_prefix appropriately

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 0x1618
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
Converted from issue

This discussion was converted from issue #1516 on August 07, 2024 00:45.