Skip to content

A simple migrate tool to convert shogun-core based projects to the new SHOGun DB model

Notifications You must be signed in to change notification settings

terrestris/shogun-migrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About the migrator

Its purpose is to quickly load applications and layers into a SHOGun boot instance. You can either migrate from a shogun2 based instance or from another SHOGun boot instance. By implementing the ShogunMigrator interface you can extend this to support other sources as well, just add the implementation to the classpath and it will be loaded automatically via SPI (don't forget to add an entry to the de.terrestris.shogun.migrator.spi.ShogunMigrator file in META-INF/services in your jar).

Run the migrator

You can run the application directly or in an IDE. Run with -h to get help:

java -jar shogun-migrator-0.0.1-SNAPSHOT-jar-with-dependencies.jar -h

Command line options

Parameter Description
sh Source host
su Source user
sp Source password
th Target host
tu Target user
tp Target password
tc Target client
c Clear (override existing data)

Reset the hibernate sequence

To reset the hibernate sequence, use something like alter sequence hibernate_sequence restart with 100;

About

A simple migrate tool to convert shogun-core based projects to the new SHOGun DB model

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages