You are here

function migrate_example_wine_schema_files in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 migrate_example/wine.install.inc \migrate_example_wine_schema_files()
2 calls to migrate_example_wine_schema_files()
migrate_example_update_6004 in migrate_example/migrate_example.install
Add 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 534
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',
    ),
  );
}