function flexiform_update_7010 in Flexiform 7
Add flexiform tags table.
File
- ./
flexiform.install, line 514 - Sets up the base table for our entity and a table to store information about the entity types.
Code
function flexiform_update_7010() {
$schema = array(
'fields' => array(
'id' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'The primary identifier of the flexiform.',
),
'tag' => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'description' => 'The tag string associated with this flexiform',
),
),
'primary key' => array(
'id',
'tag',
),
'foreign keys' => array(
'table' => 'flexiform',
'columns' => array(
'id' => 'id',
),
),
);
db_create_table('flexiform_tags', $schema);
}