I have the same question using the
hapi-fhir-cli migrate-database command without the
FLY_HFJ_MIGRATION table.
What is the strategy to update the server when it was initially created from a HAPI version > 3.3.0 by using the automatic schema creation ability, so without the creation of the
FLY_HFJ_MIGRATION table?
I think that the only way to achieve such upgrade are the following steps :
- Start an older temporary HAPI server version 3.3.0 from an empty temporary database;
- Execute on the temporary database the hapi-fhir-cli migrate-database command with the older hapi-fhir-cli .jar version 6.10.1;
- Export the created FLY_HFJ_MIGRATION table from the temporary database a SQL script with table creation and data inserts.
- Execute the SQL script of the FLY_HFJ_MIGRATION table creation and data inserts to the target database version
6.10.1;
- Execute on the target database the hapi-fhir-cli migrate-database command from the hapi-fhir-cli .jar version 7.40.0;
Is there another way?