You are here

function elfinder_schema in elFinder file manager 7

Same name and namespace in other branches
  1. 8.2 elfinder.install \elfinder_schema()
  2. 6.2 elfinder.install \elfinder_schema()
  3. 7.3 elfinder.install \elfinder_schema()
  4. 7.2 elfinder.install \elfinder_schema()

File

./elfinder.install, line 92
Installation file for elfinder.

Code

function elfinder_schema() {
  $schema = array();
  $schema['elfinder_file_extinfo'] = array(
    'description' => 'Stores additional filesystem attributes',
    'fields' => array(
      'extid' => array(
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'fid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => FALSE,
      ),
      'description' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => FALSE,
        'default' => '',
      ),
    ),
    'primary key' => array(
      'extid',
    ),
  );
  $schema['elfinder_profile'] = array(
    'description' => 'Stores configuration profiles',
    'fields' => array(
      'pid' => array(
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'name' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => FALSE,
        'default' => '',
      ),
      'description' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => FALSE,
        'default' => '',
      ),
      'settings' => array(
        'type' => 'text',
        'not null' => FALSE,
      ),
    ),
    'primary key' => array(
      'pid',
    ),
  );
  return $schema;
}