Re: command.init api ignores the cfg settings

2020-10-09 Thread 'Carol Guo' via sqlalchemy-alembic
Hi Mike, Thanks for the response. I was trying something like cfg = Config('my_alembic.ini') cfg.set_main_option("timezone", "UTC") cfg.set_main_option("truncate_slug_length", "40") command.init(cfg, 'my_alembic') and was expecting the generated my_alembic.ini file to include the timezone and

Re: command.init api ignores the cfg settings

2020-10-09 Thread Mike Bayer
hi there - this question lacks specifics. There are no configuration options that are relevant to the "alembic init" command in any case so it's not clear what config settings you are seeing as "ignored"; init uses only the name of the ini file given and this works: from alembic.config

command.init api ignores the cfg settings

2020-10-09 Thread 'Carol Guo' via sqlalchemy-alembic
I noticed that the command.init api ignores any config settings set by cfg.set_main_option or cfg.set_option. Is there any reasons that we could not allow the init file generated by command.ini api to use those user config settings? -- You received this message because you are subscribed to