function migrate_example_wine_schema_categories in Migrate 7.2
Same name and namespace in other branches
- 6.2 migrate_example/wine.install.inc \migrate_example_wine_schema_categories()
1 call to migrate_example_wine_schema_categories()
- migrate_example_wine_schema in migrate_example/
wine.install.inc - @file Set up for the wine (advanced) example.
File
- migrate_example/
wine.install.inc, line 198 - Set up for the wine (advanced) example.
Code
function migrate_example_wine_schema_categories() {
return array(
'description' => 'Categories',
'fields' => array(
'categoryid' => array(
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
'description' => 'Category ID',
),
'type' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'description' => 'Type of category: variety, region, best_with',
),
'name' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'details' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
'category_parent' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
'description' => 'Parent category, if any',
),
'ordering' => array(
'type' => 'int',
'unsigned' => FALSE,
'not null' => FALSE,
'description' => 'Order in which to display categories',
),
),
'primary key' => array(
'categoryid',
),
);
}