diff --git a/xmlsitemap.install b/xmlsitemap.install index 17a9f5e8079ec81b59d991e81ea481cc17a5bca7..3a9ea62750d46f42dd27615fb6023bad84f1fafe 100644 --- a/xmlsitemap.install +++ b/xmlsitemap.install @@ -165,10 +165,12 @@ function xmlsitemap_schema() { 'fields' => array( 'id' => array( 'description' => 'Primary key with type; a unique id for the item.', - 'type' => 'int', + 'type' => 'varchar', + 'length' => 32, 'not null' => TRUE, - 'unsigned' => TRUE, - 'default' => 0, + 'default' => '', + //'unsigned' => TRUE, + //'default' => 0, ), 'type' => array( 'description' => 'Primary key with id; the type of item (e.g. node, user, etc.).', diff --git a/xmlsitemap.module b/xmlsitemap.module index 12c609dc30470b6c4c8ce66ddb3f7e345d64fead..fa1fd440b098ee9fdac366bc971814362676db59 100644 --- a/xmlsitemap.module +++ b/xmlsitemap.module @@ -1974,7 +1974,7 @@ function xmlsitemap_entity_create_link(EntityInterface $entity) { $uri = $entity->url(); $entity->xmlsitemap += array( 'type' => $entity->getEntityTypeId(), - 'id' => $entity->id(), + 'id' => (string) $entity->id(), 'subtype' => $entity->bundle(), 'status' => $settings['status'], 'status_default' => $settings['status'], @@ -1988,7 +1988,6 @@ function xmlsitemap_entity_create_link(EntityInterface $entity) { // The following values must always be checked because they are volatile. $entity->xmlsitemap['loc'] = $uri; $entity->xmlsitemap['access'] = isset($url) ? 1 : 0; - $entity->xmlsitemap['status'] = 1; $language = $entity->language(); $entity->xmlsitemap['language'] = !empty($language) ? $language->getId() : LanguageInterface::LANGCODE_NOT_SPECIFIED;