Hi
After I got the liquibase exception as posted here, I tried to recreate the database from the studio.
I am getting a strange error when I try to recreate the already existing database.
I recreate the database:
Then it starts creating all the tables, etc. and at some stages, it gives the following exception. I tried twice, and both attempts failed but for different tables.
liquibase.exception.LiquibaseException: liquibase.exception.MigrationFailedException: Migration failed for change set com/inteacc/pf/liquibase/changelog/2022/09/22-081917-b5c068c4.xml::1::pf:
Reason: liquibase.exception.DatabaseException: Cannot find the object "PF_CONTROL_ACCOUNT_LINE" because it does not exist or you do not have permissions. [Failed SQL: (1088) CREATE NONCLUSTERED INDEX IDX_PFCONTROLACC_CONTROLACCOU ON PF_CONTROL_ACCOUNT_LINE(CONTROL_ACCOUNT_ID)]
at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:126)
at liquibase.Liquibase.lambda$null$0(Liquibase.java:265)
at liquibase.Scope.lambda$child$0(Scope.java:180)
at liquibase.Scope.child(Scope.java:189)
at liquibase.Scope.child(Scope.java:179)
at liquibase.Scope.child(Scope.java:158)
at liquibase.Scope.child(Scope.java:243)
at liquibase.Liquibase.lambda$update$1(Liquibase.java:264)
at liquibase.Scope.lambda$child$0(Scope.java:180)
at liquibase.Scope.child(Scope.java:189)
at liquibase.Scope.child(Scope.java:179)
at liquibase.Scope.child(Scope.java:158)
at liquibase.Liquibase.runInScope(Liquibase.java:2405)
at liquibase.Liquibase.update(Liquibase.java:211)
at liquibase.Liquibase.update(Liquibase.java:197)
at liquibase.integration.commandline.Main.doMigration(Main.java:1869)
at liquibase.integration.commandline.Main$1.lambda$run$0(Main.java:398)
at liquibase.Scope.lambda$child$0(Scope.java:180)
at liquibase.Scope.child(Scope.java:189)
at liquibase.Scope.child(Scope.java:179)
at liquibase.Scope.child(Scope.java:158)
at liquibase.integration.commandline.Main$1.run(Main.java:397)
at liquibase.integration.commandline.Main$1.run(Main.java:221)
at liquibase.Scope.child(Scope.java:189)
at liquibase.Scope.child(Scope.java:165)
at liquibase.integration.commandline.Main.run(Main.java:221)
at liquibase.integration.commandline.Main.main(Main.java:164)
Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set
And actually that Entity definition exists
I am using platform version 1.3.4 and the latest version of the studio today and SQL Server database.
Thanks for your suggestions