You are here

function css_injector_update_7205 in CSS Injector 7.2

remove NOT NULL requirement on rule_conditions field

File

./css_injector.install, line 269
css_injector.install

Code

function css_injector_update_7205(&$sandbox) {
  if (db_field_exists('css_injector_rule', 'rule_conditions')) {
    db_change_field('css_injector_rule', 'rule_conditions', 'rule_conditions', array(
      'description' => 'LEGACY data to evaluate when determining if the CSS should be injected',
      'type' => 'text',
      'not null' => FALSE,
    ));
  }
}