Commit 856a2375 authored by gbyte.co's avatar gbyte.co

Issue #2844636 by lamigo: PostgreSQL throws error on bundle delete

parent 828caaa0
......@@ -92,8 +92,8 @@ function simple_sitemap_schema() {
],
'entity_id' => [
'description' => 'ID of the overriding entity.',
'type' => 'int',
'unsigned' => TRUE,
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
],
'inclusion_settings' => [
......@@ -288,3 +288,19 @@ function simple_sitemap_update_8206() {
\Drupal::service('config.factory')->getEditable("simple_sitemap.custom")
->setData(['links' => $custom_links])->save();
}
/**
* Updating entity_id field of simple_sitemap_entity_overrides table to varchar(32).
*/
function simple_sitemap_update_8207() {
\Drupal::database()->schema()->changeField(
'simple_sitemap_entity_overrides',
'entity_id',
'entity_id', [
'description' => 'ID of the overriding entity.',
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
]
);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment