function migrate_example_wine_schema_wine in Migrate 7.2
Same name and namespace in other branches
- 6.2 migrate_example/wine.install.inc \migrate_example_wine_schema_wine()
1 call to migrate_example_wine_schema_wine()
- 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 71 - Set up for the wine (advanced) example.
Code
function migrate_example_wine_schema_wine() {
return array(
'description' => 'Wines of the world',
'fields' => array(
'wineid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Wine ID',
),
'name' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'body' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'description' => 'Full description of the wine.',
),
'excerpt' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'description' => 'Abstract for this wine.',
),
'accountid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
'description' => 'ID of the author.',
),
'posted' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Original creation date',
),
'last_changed' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Last change date',
),
'variety' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Wine variety',
),
'region' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Wine region',
),
'rating' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
'description' => 'Rating (100-point scale)',
),
),
'primary key' => array(
'wineid',
),
);
}