function media_migration_schema in Media Migration 8
Implements hook_schema().
File
- ./
media_migration.install, line 15 - Install and update hooks for Media Migration.
Code
function media_migration_schema() {
$schema[MediaMigration::MEDIA_UUID_PROPHECY_TABLE] = [
'description' => 'Stores the foretold UUID of the not-yet-migrated media entities.',
'fields' => [
MediaMigration::MEDIA_UUID_PROPHECY_SOURCEID_COL => [
'description' => 'The ID of the media entity from the source datatbase.',
'type' => 'int',
'not null' => TRUE,
],
MediaMigration::MEDIA_UUID_PROPHECY_UUID_COL => [
'description' => 'The foretold (on-the-fly generated) UUID.',
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
],
],
'indexes' => [],
'primary key' => [
MediaMigration::MEDIA_UUID_PROPHECY_SOURCEID_COL,
],
];
return $schema;
}