Re: Cayenne and migrations

2017-02-10 Thread John Huss
when merging branches that both contain a > schema update, you have to first rename your own migration to a higher > number to keep them in sequence. This is easy to do, but I could imagine a > more elegant way to manage the order of migrations to execute. > > As I understand, John's implem

Re: Cayenne and migrations

2017-02-10 Thread Musall, Maik
This is easy to do, but I could imagine a more elegant way to manage the order of migrations to execute. As I understand, John's implementation is very much like this, right? Maik > Am 09.02.2017 um 23:17 schrieb John Huss <johnth...@gmail.com>: > >> Can someone please explain the

Re: Cayenne and migrations

2017-02-09 Thread Aristedes Maniatis
any object naming discrepancies, map custom value > objects, map inheritance. > 4. Run cgen to sync Java classes from Cayenne model > 5. Rinse and repeat. > > Can someone please explain the workflow with ERX|cayenne migrations? What are > the advantages over the approach

Re: Cayenne and migrations

2017-02-09 Thread John Huss
> Can someone please explain the workflow with ERX|cayenne migrations? What are the advantages over the approach above? Does it handle data migrations or only the schema? Mainly schema migrations. I think the advantages are: 1) Cross-database support from a single representation. So you can

Re: Cayenne and migrations

2017-02-09 Thread Andrus Adamchik
in bootique-liquibase / bootique-flyway). > 2. Run cdbimport from Maven/Ant/Gradle to sync Cayenne model from DB. > 3. In the modeler fix any object naming discrepancies, map custom value > objects, map inheritance. > 4. Run cgen to sync Java classes from Cayenne model > 5. Rinse and

Re: Cayenne and migrations

2017-02-09 Thread Andrus Adamchik
cdbimport from Maven/Ant/Gradle to sync Cayenne model from DB. 3. In the modeler fix any object naming discrepancies, map custom value objects, map inheritance. 4. Run cgen to sync Java classes from Cayenne model 5. Rinse and repeat. Can someone please explain the workflow with ERX|cayenne migrat

Re: Cayenne and migrations

2017-02-09 Thread John Huss
s your current work public or is the most > recent > >> public work in the SVN-repo I mentioned? > >> > >> Cheers, > >> - hugi > >> > >> > >>> On 9. feb. 2017, at 15:36, John Huss <johnth...@gmail.com> wrote: > >>> > >

Re: Cayenne and migrations

2017-02-09 Thread Musall, Maik
>> - hugi >> >> >>> On 9. feb. 2017, at 15:36, John Huss <johnth...@gmail.com> wrote: >>> >>> I'm developing and using cayenne-migrations. It works fine for me and >> has a >>> very similar approach to ERXMigrations. I don't think

Re: Cayenne and migrations

2017-02-09 Thread John Huss
ing. Is your current work public or is the most recent > public work in the SVN-repo I mentioned? > > Cheers, > - hugi > > > > On 9. feb. 2017, at 15:36, John Huss <johnth...@gmail.com> wrote: > > > > I'm developing and using cayenne-migrations. It w

Re: Cayenne and migrations

2017-02-09 Thread Hugi Thordarson
Hi John, that’s very interesting. Is your current work public or is the most recent public work in the SVN-repo I mentioned? Cheers, - hugi > On 9. feb. 2017, at 15:36, John Huss <johnth...@gmail.com> wrote: > > I'm developing and using cayenne-migrations. It works fine

Re: Cayenne and migrations

2017-02-09 Thread Hugi Thordarson
all. >> In EOF/WOnder we have the most swesome ERXMigrations to manage changes in >> the data model between versions, i.e. upgrades of the schema (and >> downgrades, if applicable). >> >> I see that some years ago there was discussion of an API to handle this in >>

Re: Cayenne and migrations

2017-02-09 Thread Michael Gentry
to be able to run Flyway migrations for us. On Thu, Feb 9, 2017 at 10:36 AM, John Huss <johnth...@gmail.com> wrote: > I'm developing and using cayenne-migrations. It works fine for me and has a > very similar approach to ERXMigrations. I don't think others are using it >

Re: Cayenne and migrations

2017-02-09 Thread John Huss
I'm developing and using cayenne-migrations. It works fine for me and has a very similar approach to ERXMigrations. I don't think others are using it though. It has the advantage of being able to auto-generate the migration code from your cayenne model (DataMap), where I think the others require

Re: Cayenne and migrations

2017-02-09 Thread Michael Gentry
see that some years ago there was discussion of an API to handle this in > Cayenne ( http://svn.apache.org/repos/asf/cayenne/sandbox/cayenne- > migrations/ ). but how’s the situation today? Is there something in/for > Cayenne to do this, and if not, what tools are people using to manage > versio

Cayenne and migrations

2017-02-09 Thread Hugi Thordarson
/cayenne/sandbox/cayenne-migrations/ ). but how’s the situation today? Is there something in/for Cayenne to do this, and if not, what tools are people using to manage versioning of their DB schemas? Cheers, - hugi