You are here

function linkit_update_7304 in Linkit 7.3

Make sure admin_description can be null.

File

./linkit.install, line 273
Install, update and uninstall functions for the Linkit module.

Code

function linkit_update_7304() {
  $schema = drupal_get_schema_unprocessed('linkit', 'linkit_profiles');

  // Admin description should allow null values as field is not required.
  db_change_field('linkit_profiles', 'admin_description', 'admin_description', $schema['fields']['admin_description']);

  // Profile type should have a default value assigned, Editor.
  db_change_field('linkit_profiles', 'profile_type', 'profile_type', $schema['fields']['profile_type']);
}