function farm_quick_update_7000 in farmOS 7
Create the {farm_quick_entity} table.
File
- modules/
farm/ farm_quick/ farm_quick.install, line 54 - Farm quick install.
Code
function farm_quick_update_7000(&$sandbox) {
// Create the {farm_quick_entity} table.
$schema = array(
'description' => 'Entities created via quick forms.',
'fields' => array(
'entity_type' => array(
'description' => 'Entity type.',
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
),
'entity_id' => array(
'description' => 'Entity ID.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'quick_form_id' => array(
'description' => 'Quick form ID.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
),
'indexes' => array(
'entity_type' => array(
'entity_type',
),
'entity_id' => array(
'entity_id',
),
'quick_form_id' => array(
'quick_form_id',
),
),
);
db_create_table('farm_quick_entity', $schema);
}