Repairs the MigrateDB schema history table. This will perform the following actions:
migratedb [options] repair
See configuration for a full list of supported configuration parameters.
migratedb.driver=org.hsqldb.jdbcDriver
migratedb.url=jdbc:hsqldb:file:/db/migratedb_sample
migratedb.user=SA
migratedb.password=mySecretPwd
migratedb.connectRetries=10
migratedb.initSql=SET ROLE 'myuser'
migratedb.schemas=schema1,schema2,schema3
migratedb.table=schema_history
migratedb.locations=classpath:com.mycomp.migration,database/migrations,filesystem:/sql-migrations,s3:migrationsBucket,gcs:migrationsBucket
migratedb.sqlMigrationPrefix=Migration-
migratedb.repeatableSqlMigrationPrefix=RRR
migratedb.sqlMigrationSeparator=__
migratedb.sqlMigrationSuffixes=.sql,.pkg,.pkb
migratedb.encoding=ISO-8859-1
migratedb.placeholderReplacement=true
migratedb.placeholders.aplaceholder=value
migratedb.placeholders.otherplaceholder=value123
migratedb.placeholderPrefix=#[
migratedb.placeholderSuffix=]
migratedb.resolvers=com.mycomp.project.CustomResolver,com.mycomp.project.AnotherResolver
migratedb.skipDefaultResolvers=false
migratedb.callbacks=com.mycomp.project.CustomCallback,com.mycomp.project.AnotherCallback
migratedb.skipDefaultCallbacks=false
migratedb.workingDirectory=C:/myProject
migratedb.jdbcProperties.myProperty=value
> migratedb repair MigrateDB 1.0.0 Repair not necessary. No failed migration detected.
> migratedb repair -outputType=json { "repairActions": [ "ALIGNED APPLIED MIGRATION CHECKSUMS" ], "migrationsRemoved": [], "migrationsDeleted": [], "migrationsAligned": [ { "version": "1", "description": "first", "filepath": "C:\\migratedb\\sql\\V1__first.sql" } ], "migratedbReleaseVersion": "1.0.0", "database": "testdb", "warnings": [], "operation": "repair" }