Terrence Brannon
Terrence Brannon

Reputation: 4978

Schema migrations in PonyORM

if one modifies a schema created with the online editor, does PonyORM perform the required ALTER TABLE statements to upgrade the schema?

Upvotes: 2

Views: 3630

Answers (1)

Alexander Kozlovsky
Alexander Kozlovsky

Reputation: 4849

At this moment, PonyORM online editor doesn't perform migrations when schema is modified. You need to upgrade schema manually.

You can try to use migration tool from orm-migrations branch. It is not officially released yet. You can copy model definitions from online editor, save them in some models.py file in you project, and use migration tool to create migration. For simple migrations, like, adding attribute or relationship, it should work.

Upvotes: 2

Related Questions