  
          model = Model()
          with self._patch_check_field_on('default') as mock_check_field_default:
              with self._patch_check_field_on('other') as mock_check_field_other:
                  model.check()
                  self.assertTrue(mock_check_field_default.called)
                  self.assertFalse(mock_check_field_other.called)
  
      def test_checks_called_on_the_other_database(self):
          class OtherModel(models.Model):
 
</s> remove                 model.check()
 </s> add                 model.check(databases={'default', 'other'}) </s> remove         self.assertEqual(field.check(), [
 </s> add         self.assertEqual(field.check(databases=self.databases), [ </s> remove             self.assertEqual(field.check(), [error])
 </s> add             self.assertEqual(field.check(databases={'default'}), [error]) </s> remove         for db in connections:
            if router.allow_migrate(db, app_label, model_name=self.model._meta.model_name):
                return connections[db].validation.check_field(self, **kwargs)
        return []
 </s> add         errors = []
        for alias in databases:
            if router.allow_migrate(alias, app_label, model_name=self.model._meta.model_name):
                errors.extend(connections[alias].validation.check_field(self, **kwargs))
        return errors </s> remove     def _check_backend_specific_checks(self, **kwargs):
 </s> add     def _check_backend_specific_checks(self, databases=None, **kwargs):
        if databases is None:
            return []
                model.check(databases={'default', 'other'})
  
          model = Model()
          with self._patch_check_field_on('default') as mock_check_field_default:
              with self._patch_check_field_on('other') as mock_check_field_other:
                model.check(databases={'default', 'other'})
                  self.assertTrue(mock_check_field_default.called)
                  self.assertFalse(mock_check_field_other.called)
  
      def test_checks_called_on_the_other_database(self):
          class OtherModel(models.Model):
keep keep keep keep replace keep keep keep keep keep
 Fixed #31286 -- Made database specific fields checks databases aware.

Follow up to 0b83c8cc4db95812f1e15ca19d78614e94cf38dd. 
tests/check_framework/test_multi_db.py