You are here

function scald_update_7009 in Scald: Media Management made easy 7

Add language property for atoms.

File

./scald.install, line 607

Code

function scald_update_7009() {
  db_add_field('scald_atoms', 'language', array(
    'description' => 'The {languages}.language of this atom.',
    'type' => 'varchar',
    'length' => 12,
    'not null' => TRUE,
    'default' => '',
  ));
  db_update('scald_atoms')
    ->fields(array(
    'language' => LANGUAGE_NONE,
  ))
    ->execute();
  return array();
}