code: def can_be_applied(self, manifest, db):
          
          if manifest.version != self.base_version:
              raise DatamodelManifestError(
                  "Datamodel's manifest shows incompatible version to "
                  "apply the patch (required: %s, available: %s)" %
                  (self.base_version, manifest.version))
docs: Check the current datamodel state fulfill the requirements
          to run this patch