Closed augustoccesar closed 6 years ago
yes. in your Meta
class add evolve = False
. sorry, that should be documented.
Okay! No problem 😄 But really would be nice to be on the documentation for new people 🤔 And thanks for the fast response!
But at any case I don't think it will work for me 🤔 Since all the models will extend the evolve = False
🤔
hmmm... fair point. i'm not sure i have a good solution for you then. (other than the very hacky "just ignore the empty table" response.) i always just put database=database
on each individual model. :)
what do you think about an ignore_tables
kwarg on evolve()
?
@keredson Yeah, that was exactly what I was searching on your code: a way to ignore tables by its names on evolve()
. I thing it is a good idea 🤔
And I don't do the database=database
on each model because I have some more configuration for the database that I do together with the BaseModel
when the app is loaded. But it is a solution that I can work around if not possible to do the idea that we talked about above 😄
what do you think about that?
Yep, it looks perfect! 👍
cool. peewee-db-evolve-0.6.8
released.
Is there a way to ignore some model/table? In my app I have a default Base Model, from which the others are extended.
And because of that, the migrations tries to migrate it...