Hello, @Akito
I would recommend you to consider backing up and upgrading your Mattermost instance to see if the behavior is still reproducible since [MM-24573] The schema for the scheme* columns should be booleans, not smallints - Mattermost is an old bug.
We can then determine if the bug should be reopened and reinvestigated again to ensure that it is resolved for good.