You are here

function media_acquiadam_update_8101 in Media: Acquia DAM 8

Installs the new asset data schema if necessary.

File

./media_acquiadam.install, line 63
Installation related hooks and functions.

Code

function media_acquiadam_update_8101(&$sandbox) {
  $table_name = 'acquiadam_assets_data';
  $db_schema = Drupal::database()
    ->schema();
  if ($db_schema
    ->tableExists($table_name)) {
    return;
  }
  $new_schema = media_acquiadam_schema();
  $db_schema
    ->createTable($table_name, $new_schema[$table_name]);
}