awferreira / c5-db-migration

Automatically exported from code.google.com/p/c5-db-migration
0 stars 0 forks source link

Support for multiple migration paths in a single execution #39

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Sometimes it may be useful to store migration scripts in separate folders and 
combine them later, during a single execution. For instance, scripts to create 
initial database structure and mandatory data may be stored under main 
resources folder while sample data under test resources folder:

    <migrationsPaths>
      <migrationsPath>src/main/db/</migrationsPath>
      <migrationsPath>src/test/db/</migrationsPath>
    </migrationsPaths>

Original issue reported on code.google.com by mykola.nickishov on 16 Jul 2010 at 6:38

GoogleCodeExporter commented 8 years ago
Oops, XML tags were removed :-( Should look like:

    <migrationsPaths>
      <migrationsPath>src/main/db/</migrationsPath>
      <migrationsPath>src/test/db/</migrationsPath>
    </migrationsPaths>

Implementation available here 
http://github.com/manandbytes/c5-db-migration/tree/migrations-path-as-list

See 
http://github.com/manandbytes/c5-db-migration/compare/master...migrations-path-a
s-list for quick overview.

Original comment by mykola.nickishov on 17 Jul 2010 at 9:26

GoogleCodeExporter commented 8 years ago
Mykola,

I'm having a hard time thinking of when having multiple paths would be a good 
thing.  Maybe you can help me... What's the use case for having multiple paths?

Thanks,
Christian

Original comment by christia...@gmail.com on 20 Jul 2010 at 3:10