We recently saw issues where a user could not upgrade Coder when using a custom scheme in the DB. - #12619 - #12631 To prevent this from happening in the future, we should add tests. @matifali we should make tests preventing this from happening in the future. _Originally posted by @kylecarbs in https://github.com/coder/coder/issues/12631#issuecomment-2003838341_