function webprofiler_update_8001 in Devel 8.2
Same name and namespace in other branches
- 8.3 webprofiler/webprofiler.install \webprofiler_update_8001()
- 8 webprofiler/webprofiler.install \webprofiler_update_8001()
- 4.x webprofiler/webprofiler.install \webprofiler_update_8001()
Add a status_code column to the webprofiler table.
File
- webprofiler/
webprofiler.install, line 176 - Install, update and uninstall functions for the webprofiler module.
Code
function webprofiler_update_8001() {
$database = \Drupal::database();
$schema = $database
->schema();
$spec = array(
'description' => 'Profile status code.',
'type' => 'int',
'size' => 'small',
'unsigned' => TRUE,
'not null' => TRUE,
);
$schema
->addField('webprofiler', 'status_code', $spec);
}