You are here

function filebrowser_schema in Filebrowser 6

Same name and namespace in other branches
  1. 8.2 filebrowser.install \filebrowser_schema()
  2. 8 filebrowser.install \filebrowser_schema()
  3. 6.2 filebrowser.install \filebrowser_schema()
  4. 7.4 filebrowser.install \filebrowser_schema()
  5. 7.2 filebrowser.install \filebrowser_schema()
  6. 7.3 filebrowser.install \filebrowser_schema()
  7. 3.x filebrowser.install \filebrowser_schema()

File

./filebrowser.install, line 3

Code

function filebrowser_schema() {
  $schema['filebrowser'] = array(
    'fields' => array(
      'path' => array(
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
      ),
      'location' => array(
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
      ),
      'can_explore' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'disp-width' => '1',
      ),
    ),
    'primary key' => array(
      'path',
    ),
  );
  return $schema;
}