Hi,
When I upgrade my production, I want to automate some data migrations.
For example, I added country entity and I want to fill its values when deploying. I know I can do it via SQL, but I have more complex use cases, such as writing files to disk and it gets complex.
Is there any deployment tool that knows to run managed JAVA code migration?
Thanks
Isnt there any entrypoint that I can run each deployment? … in java
public void up(){
MyEntity entity = dataManager.create(....);
entity.setName("test");
dataManage.commit(entity);
MyUtils.writeFileToDisk(entity);
MyUtils.renameOnDisk(entity);
MyUtils.whatever();
//bla bla bla
}
Can you think of something that I can implement fast to acheive that? I have already written API and services… I want to use them in the migration… it would be a mess to now write them in ruby,