function tft_archive_schema in Taxonomy File Tree 7.2
Implements hook_schema().
File
- modules/
tft_archive/ tft_archive.install, line 45 - Install logic.
Code
function tft_archive_schema() {
return array(
'tft_archive_tid' => array(
'description' => 'Flags which terms are archive folders.',
'fields' => array(
'tid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'is_archive' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
),
),
'tft_archive_restore' => array(
'description' => 'Logs previous element position before being archived',
'fields' => array(
'id' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'type' => array(
'type' => 'varchar',
'length' => 10,
),
'previous_parent_tid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
),
),
);
}