On Mon, Apr 11, 2022, at 12:47 AM, arvind aithal wrote:
> Is it possible to rename the alembic table name to customised one? 
> 
> Once we run the migrations it creates *alembic_version table* which stores 
> the version. 
> 
> After init, when we run command migrate, by default it generates 
> alembic_version table. Can this be customised with different names? ex: 
> myservice_alembic_version. 
> 
> Purpose is, since running different micro services connecting to same db. 
> Just to avoid the losing data by bifurcating alembic_version table. 

yes, in env.py, use the version_table parameter in the configure() call: 
https://alembic.sqlalchemy.org/en/latest/api/runtime.html?highlight=version_table#alembic.runtime.environment.EnvironmentContext.configure.params.version_table
  



> 
> Thanks,
> Aravind
> 
> 
> -- 
> 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/40fbf802-0d5f-4205-81f7-8ef4e96c380cn%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/sqlalchemy-alembic/40fbf802-0d5f-4205-81f7-8ef4e96c380cn%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/7ffe43a1-9d4b-4311-96e1-01838935a3c3%40www.fastmail.com.

Reply via email to