Internal error: undefined method `visibility_reason_id'

Looking at the code, it seems that visibility_reason_id and such are database fields new in this version, that were supposed to be added to the existing database by migrations scripts (e.g., db/migrate/20240423013808_add_visibility_reason_id_to_topics.rb). I suspect that the upgrade stopped halfway before running these.

Is there a way to cleanly roll back to 3.3.0beta1 and redo the migration? If I do git checkout v3.3.0.beta1 inside the Docker container (./launcher enter app), is it dangerous?