function autosave_schema in Autosave 6
Same name and namespace in other branches
- 5.3 autosave.install \autosave_schema()
- 6.2 autosave.install \autosave_schema()
- 7.2 autosave.install \autosave_schema()
- 7 autosave.install \autosave_schema()
Implementation of hook_schema()
File
- ./
autosave.install, line 27
Code
function autosave_schema() {
return array(
'autosaved_forms' => array(
'description' => t("Table to save forms in the database"),
'fields' => array(
'form_id' => array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
),
'path' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'uid' => array(
'type' => 'int',
'length' => 11,
'not null' => TRUE,
'default' => 0,
),
'timestamp' => array(
'type' => 'int',
'length' => 11,
'not null' => TRUE,
'default' => 0,
),
'serialized' => array(
'type' => 'text',
'not null' => TRUE,
'size' => 'big',
),
),
'primary key' => array(
'form_id',
'path',
'uid',
),
),
);
}