[PonyORM-list] Entity's modifications

Alexander Kozlovsky alexander.kozlovsky at gmail.com
Sat Apr 18 06:22:16 UTC 2015


Hi Vincent!

Currently you need to execute ALTER TABLE command manually. It is not that
hard if the modification is just adding new column. We plan to add
migration tool in September, this tool will be able to do everything
automatically.

Here you can see an example how simple migrations can be done manually:
https://github.com/ponyorm/pony/issues/123

Regards,
Alexander Kozlovsky


On Sat, Apr 18, 2015 at 2:49 AM, Vincent LE GOFF <
vincent.legoff.srs at gmail.com> wrote:

> Hi everyone,
>
> I'm eager to begin working with Pony ORM.  That sounds so simple compared
> to other ORMs I've seen.  However, I have a concern regarding entity's
> evolution.
>
> I didn't see an automatic way to handle these type of modifications.  For
> instance, what happens if we work with an entity, then decide to add a new
> field to it?  Or to change the type of a given field?  Or to remove one?
> Performing specific updatess (called migrations in other ORMs) can be
> sometimes useful, too.  For instance, if we want to delete two fields but
> combining their old results in a single one.  Is there any way to do that
> using Pony ORM?
>
> Thank you very much for your answer!
>
> Happy hacking,
>
> Vincent
> _______________________________________________
> ponyorm-list mailing list
> ponyorm-list at ponyorm.com
> /ponyorm-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </ponyorm-list/attachments/20150418/37d1b56a/attachment.html>


More information about the ponyorm-list mailing list