You are here

function imce_update_6201 in IMCE 6.2

Introduce {imce_files} db table where IMCE files are stored.

File

./imce.install, line 100
Installs, updates, and uninstalls IMCE.

Code

function imce_update_6201() {
  $ret = array();
  if (db_table_exists('imce_files')) {
    return $ret;
  }
  $table = array(
    'description' => 'Stores files created by IMCE.',
    'fields' => array(
      'fid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => 'The {files}.fid that belongs to IMCE.',
      ),
    ),
    'primary key' => array(
      'fid',
    ),
  );
  db_create_table($ret, 'imce_files', $table);
  return $ret;
}