function mee_schema in Scald: Media Management made easy 6
Same name and namespace in other branches
- 7 modules/fields/mee/mee.install \mee_schema()
Implementation of hook_schema().
File
- mee/
mee.install, line 66 - Implementation of hook_install().
Code
function mee_schema() {
$schema['mee_ressources'] = array(
'fields' => array(
'content_nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'atom_sid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'field' => array(
'type' => 'varchar',
'length' => 31,
'not null' => TRUE,
'default' => '',
),
'weight' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'required' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'copyright' => array(
'type' => 'text',
),
),
'primary key' => array(
'content_nid',
'atom_sid',
'field',
),
);
return $schema;
}