klen / peewee_migrate

Simple migration engine for Peewee

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Persist schema for all migrations

throberto opened this issue · comments

Hi guys,

I need to define a standard schema for a specific migration directory (the schema name is dynamic, so it is not possible to define it when creating the model).

image

How can I retrieve the "custom_schema" schema value in the migrate method?

image

alternatively I overwrote the behavior of the run_one method of the Router class to meet my need.

however, I imagine that it is interesting for the migration to receive the parameters set in Router.

😄