You are here

function filebrowser_schema in Filebrowser 6.2

Same name and namespace in other branches
  1. 8.2 filebrowser.install \filebrowser_schema()
  2. 8 filebrowser.install \filebrowser_schema()
  3. 6 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 filbrowser installation file.

2 calls to filebrowser_schema()
filebrowser_update_6211 in ./filebrowser.install
filebrowser_update_6213 in ./filebrowser.install

File

./filebrowser.install, line 30
filbrowser installation file.

Code

function filebrowser_schema() {
  $schema = array();
  $schema['node_dir_listing'] = array(
    'fields' => array(
      'nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'folder_path' => array(
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
      ),
      'properties' => array(
        'type' => 'text',
        'not null' => TRUE,
        'size' => 'big',
      ),
    ),
    'primary key' => array(
      'nid',
    ),
  );
  $schema['node_dir_listing_content'] = array(
    'fields' => array(
      'nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'fid' => array(
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'root' => array(
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
      ),
      'path' => array(
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'fid',
    ),
    'unique keys' => array(
      'nid_fid' => array(
        'nid',
        'fid',
      ),
      'fid' => array(
        'fid',
      ),
    ),
  );
  return $schema;
}