You are here

function linkit_update_7203 in Linkit 7.2

Change column type for linkit_profiles.data and linkit_profiles.role_rids to use blob and serialize instead of big text.

File

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

Code

function linkit_update_7203() {
  db_change_field('linkit_profiles', 'data', 'data', array(
    'type' => 'blob',
    'size' => 'big',
    'not null' => TRUE,
    'serialize' => TRUE,
    'description' => 'A serialized array with settings.',
  ));
  db_change_field('linkit_profiles', 'role_rids', 'role_rids', array(
    'type' => 'blob',
    'size' => 'big',
    'not null' => TRUE,
    'serialize' => TRUE,
    'description' => 'A serialized array with role rids that is assign to this profile.',
  ));
}