[PonyORM-list] Entity's modifications

Vincent LE GOFF vincent.legoff.srs at gmail.com
Sun Apr 19 05:05:53 UTC 2015


Hello Alexander,

Thank you for your reply.  I was hoping to avoid SQL queries, but I'll 
setup a way to handle these cases simply, waiting for the migration 
feature in September.

Thanks again,

Vincent

Le 4/17/2015 11:22 PM, Alexander Kozlovsky a ├ęcrit :
> 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 <mailto: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 <mailto:ponyorm-list at ponyorm.com>
>     /ponyorm-list
>
>
>
>
> _______________________________________________
> ponyorm-list mailing list
> ponyorm-list at ponyorm.com
> /ponyorm-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </ponyorm-list/attachments/20150418/76e34a39/attachment.html>


More information about the ponyorm-list mailing list