function migrate_example_wine_schema_table_dest in Migrate 7.2
Same name and namespace in other branches
- 6.2 migrate_example/wine.install.inc \migrate_example_wine_schema_table_dest()
2 calls to migrate_example_wine_schema_table_dest()
- migrate_example_update_7006 in migrate_example/
migrate_example.install - Sample data for table destinations..
- 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 614 - Set up for the wine (advanced) example.
Code
function migrate_example_wine_schema_table_dest() {
return array(
'description' => 'Custom Drupal table to receive source data directly',
'fields' => array(
'recordid' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Primary key',
),
'drupal_text' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'description' => 'First field',
),
'drupal_int' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Second field',
),
),
'primary key' => array(
'recordid',
),
);
}