function site_settings_update_8006 in Site Settings and Labels 8
Remove the user_id field from the site_setting_entity table, as it now lives in the site_setting_entity_field_data one.
File
- ./
site_settings.install, line 160 - Contains install and update hooks.
Code
function site_settings_update_8006() {
$schema = \Drupal::database()
->schema();
if ($schema
->fieldExists('site_setting_entity', 'user_id')) {
$schema
->dropField('site_setting_entity', 'user_id');
}
}