I tried to fall back from 3.2.9 to 3.1.2 and do a database migration. But this error has occurred, is the database incompatible?

07-24 10:13:34 INFO metabase.db :: Liquibase is ready.
07-24 10:13:35 ERROR metabase.core :: Metabase Initialization FAILED
liquibase.exception.ValidationFailedException: Validation Failed:
3 change sets check sum
migrations/000_migrations.yaml::10::cammsaul was: 8:532075ff1717d4a16bb9f27c606db46b but is now: 8:2e03a495932b4a9aebb9d58a6ad87ca9
migrations/000_migrations.yaml::40::camsaul was: 8:ee7f50a264d6cf8d891bd01241eebd2c but is now: 8:231d66cf27fc4b4bc066172b435439b5
migrations/000_migrations.yaml::51::camsaul was: 8:43c90b5b9f6c14bfd0e41cc0b184617e but is now: 8:8491a72bd30aac2565c97daf8b84e515

at liquibase.changelog.DatabaseChangeLog.validate(DatabaseChangeLog.java:276)
at liquibase.Liquibase.update(Liquibase.java:198)
at liquibase.Liquibase.update(Liquibase.java:274)
at liquibase.Liquibase.update(Liquibase.java:251)
at liquibase.Liquibase.update(Liquibase.java:247)
at liquibase.Liquibase.update(Liquibase.java:243)
at metabase.db$migrations_sql.invokeStatic(db.clj:134)
at metabase.db$migrations_sql.invoke(db.clj:130)
at metabase.db$migrate_BANG_$fn__6539.invoke(db.clj:303)
at clojure.java.jdbc$db_transaction_STAR_.invokeStatic(jdbc.clj:747)
at clojure.java.jdbc$db_transaction_STAR_.invoke(jdbc.clj:717)
at clojure.java.jdbc$db_transaction_STAR_.invokeStatic(jdbc.clj:782)
at clojure.java.jdbc$db_transaction_STAR_.invoke(jdbc.clj:717)
at clojure.java.jdbc$db_transaction_STAR_.invokeStatic(jdbc.clj:730)
at clojure.java.jdbc$db_transaction_STAR_.invoke(jdbc.clj:717)
at metabase.db$migrate_BANG_.invokeStatic(db.clj:288)
at metabase.db$migrate_BANG_.invoke(db.clj:269)
at metabase.db$print_migrations_and_quit_BANG_.invokeStatic(db.clj:420)
at metabase.db$print_migrations_and_quit_BANG_.invoke(db.clj:416)
at metabase.db$run_schema_migrations_BANG_.invokeStatic(db.clj:448)
at metabase.db$run_schema_migrations_BANG_.invoke(db.clj:429)
at metabase.db$setup_db_BANG_.invokeStatic(db.clj:465)
at metabase.db$setup_db_BANG_.doInvoke(db.clj:458)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at metabase.core$init_BANG_.invokeStatic(core.clj:162)
at metabase.core$init_BANG_.invoke(core.clj:139)
at metabase.core$start_normally.invokeStatic(core.clj:246)
at metabase.core$start_normally.invoke(core.clj:240)
at metabase.core$_main.invokeStatic(core.clj:266)
at metabase.core$_main.doInvoke(core.clj:261)
at clojure.lang.RestFn.invoke(RestFn.java:397)
at clojure.lang.AFn.applyToHelper(AFn.java:152)
at clojure.lang.RestFn.applyTo(RestFn.java:132)

what should I do?

Hi @qq447411944
Metabase does not support downgrading the metadata, so you would need to restore the metadata from a backup.
Or manually go and try to revert the changes added in the newer version - you can see the changes in the metadata table DATABASECHANGELOG.

I hope that you can help me to see this mistake again. I really can’t think of other ways.

I executed the script that was entered by the console. Then another error occurred.I am sorry that I don’t know this very well, I am bothering you.

  07-24 11:02:25 INFO metabase.core :: Setting up and migrating Metabase DB. Please sit tight, this may take a minute...
    07-24 11:02:25 ERROR metabase.core :: Metabase Initialization FAILED
    java.lang.AssertionError: Assert failed: (keyword? engine)
    at metabase.db$verify_db_connection.invokeStatic(db.clj:395)
    at metabase.db$verify_db_connection.invoke(db.clj:395)
    	at metabase.db$verify_db_connection.invokeStatic(db.clj:398)
    	at metabase.db$verify_db_connection.invoke(db.clj:395)
    	at metabase.db$setup_db_BANG_.invokeStatic(db.clj:464)
    	at metabase.db$setup_db_BANG_.doInvoke(db.clj:458)
    	at clojure.lang.RestFn.invoke(RestFn.java:421)
    	at metabase.core$init_BANG_.invokeStatic(core.clj:162)
    	at metabase.core$init_BANG_.invoke(core.clj:139)
    	at metabase.core$start_normally.invokeStatic(core.clj:246)
    	at metabase.core$start_normally.invoke(core.clj:240)
    	at metabase.core$_main.invokeStatic(core.clj:266)
    	at metabase.core$_main.doInvoke(core.clj:261)
    	at clojure.lang.RestFn.invoke(RestFn.java:397)
    	at clojure.lang.AFn.applyToHelper(AFn.java:152)

@qq447411944

I don’t understand what you’re trying to do now. What script did you try to execute?

Do you have a backup of your metadata? If yes, then just restore from backup.