function migrate_schema_log in Migrate 7.2
Same name and namespace in other branches
- 6.2 migrate.install \migrate_schema_log()
2 calls to migrate_schema_log()
- migrate_schema in ./
migrate.install - @file Migrate module installation
- migrate_update_7005 in ./
migrate.install - Add support for history logging
File
- ./
migrate.install, line 66 - Migrate module installation
Code
function migrate_schema_log() {
return array(
'description' => 'History of migration processes',
'fields' => array(
'mlid' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Primary key for migrate_log table',
),
'machine_name' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'description' => 'Unique machine name for migration',
),
'process_type' => array(
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Type of migration process - 1 for import, 2 for rollback',
),
'starttime' => array(
'type' => 'int',
'size' => 'big',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Begin time of a migration process, times 1000',
),
'endtime' => array(
'type' => 'int',
'size' => 'big',
'unsigned' => TRUE,
'not null' => FALSE,
'description' => 'End time of a migration process, times 1000',
),
'initialhighwater' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'description' => 'Initial highwater mark',
),
'finalhighwater' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'description' => 'Final highwater mark',
),
'numprocessed' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
'description' => 'Number of items processed',
),
),
'primary key' => array(
'mlid',
),
);
}