Referenced objects in check constraints could be dropped, which resulted in a database that can't be opened normally.