function deploy_uuid_schema in Deploy - Content Staging 6
File
- modules/
deploy_uuid/ deploy_uuid.install, line 3
Code
function deploy_uuid_schema() {
$schema = array();
// node mapping
$schema['node_uuid'] = array(
'fields' => array(
'uuid' => deploy_uuid_get_field_definition(),
'nid' => array(
'type' => 'int',
'not null' => TRUE,
),
),
'primary key' => array(
'nid',
),
'unique keys' => array(
'uuid' => array(
'uuid',
),
),
);
// user field mapping
$schema['users_uuid'] = array(
'fields' => array(
'uuid' => deploy_uuid_get_field_definition(),
'uid' => array(
'type' => 'int',
'not null' => TRUE,
),
),
'primary key' => array(
'uid',
),
'unique keys' => array(
'uuid' => array(
'uuid',
),
),
);
// comment field mapping
$schema['comments_uuid'] = array(
'fields' => array(
'uuid' => deploy_uuid_get_field_definition(),
'cid' => array(
'type' => 'int',
'not null' => TRUE,
),
),
'primary key' => array(
'cid',
),
'unique keys' => array(
'uuid' => array(
'uuid',
),
),
);
// taxonomy mapping
$schema['term_data_uuid'] = array(
'fields' => array(
'uuid' => deploy_uuid_get_field_definition(),
'tid' => array(
'type' => 'int',
'not null' => TRUE,
),
),
'primary key' => array(
'tid',
),
'unique keys' => array(
'uuid' => array(
'uuid',
),
),
);
$schema['vocabulary_uuid'] = array(
'fields' => array(
'uuid' => deploy_uuid_get_field_definition(),
'vid' => array(
'type' => 'int',
'not null' => TRUE,
),
),
'primary key' => array(
'vid',
),
'unique keys' => array(
'uuid' => array(
'uuid',
),
),
);
// filefield mapping
$schema['files_uuid'] = array(
'fields' => array(
'uuid' => deploy_uuid_get_field_definition(),
'fid' => array(
'type' => 'int',
'not null' => TRUE,
),
),
'primary key' => array(
'fid',
),
'unique keys' => array(
'uuid' => array(
'uuid',
),
),
);
return $schema;
}