Error downgrading from 51.6 to 50.24

Hello,

I'm trying to downgrade from version 51.6 to 50.24 but I'm running to this error when I try:

Command failed with exception: liquibase.exception.LiquibaseException: liquibase.exception.RollbackFailedException: liquibase.exception.DatabaseException: (conn=37) Unknown column 'direct_reference' in 'query_field' [Failed SQL: (1054) ALTER TABLE metabase.query_fieldALTERdirect_reference DROP DEFAULT]

Any ideas?

you should restore a previous 50.24 backup to downgrade. That's the cleanest path