function migrate_example_wine_schema_files in Migrate 7.2
Same name and namespace in other branches
- 6.2 migrate_example/wine.install.inc \migrate_example_wine_schema_files()
3 calls to migrate_example_wine_schema_files()
- migrate_example_update_7003 in migrate_example/
migrate_example.install - Add data for remote file examples.
- migrate_example_update_7005 in migrate_example/
migrate_example.install - Expand file field example data.
- 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 548 - Set up for the wine (advanced) example.
Code
function migrate_example_wine_schema_files() {
return array(
'description' => 'Wine and account files',
'fields' => array(
'imageid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Image ID',
),
'url' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'description' => 'Image URL',
),
'image_alt' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'description' => 'Image alt',
),
'image_title' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'description' => 'Image title',
),
'wineid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
'description' => 'Wine node this is associated with',
),
),
'primary key' => array(
'imageid',
),
);
}