Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. system.install

function system_update_11001

Update length of menu_tree fields url and route_param_key from 255 to 2048.

File

core/modules/system/system.install, line 1730

Code

function system_update_11001() : void {
    $schema = \Drupal::database()->schema();
    $spec = [
        'description' => 'The external path this link points to (when not using a route).',
        'type' => 'varchar',
        'length' => 2048,
        'not null' => TRUE,
        'default' => '',
    ];
    $schema->changeField('menu_tree', 'url', 'url', $spec);
    $spec = [
        'description' => 'An encoded string of route parameters for loading by route.',
        'type' => 'varchar',
        'length' => 2048,
    ];
    $schema->changeField('menu_tree', 'route_param_key', 'route_param_key', $spec);
}
RSS feed
Powered by Drupal