function filebrowser_schema in Filebrowser 7.3
Same name and namespace in other branches
- 8.2 filebrowser.install \filebrowser_schema()
- 8 filebrowser.install \filebrowser_schema()
- 6.2 filebrowser.install \filebrowser_schema()
- 6 filebrowser.install \filebrowser_schema()
- 7.4 filebrowser.install \filebrowser_schema()
- 7.2 filebrowser.install \filebrowser_schema()
- 3.x filebrowser.install \filebrowser_schema()
@file filbrowser installation file.
2 calls to filebrowser_schema()
File
- ./
filebrowser.install, line 29 - 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;
}