Had to avoid using indexes in the migration phase

File and File_redirection still had their indexes in the temporary migration table definition.
This commit is contained in:
Mikael Nordfeldth
2015-02-19 22:06:43 +01:00
parent 987232a0a6
commit 0e6c83e521
2 changed files with 15 additions and 3 deletions

View File

@@ -373,8 +373,14 @@ class File_redirection extends Managed_DataObject
$schemadef['fields']['urlhash'] = array (
'type' => 'varchar',
'length' => 64,
'description' => 'sha256 of destination URL after following redirections',
'not null' => true,
'description' => 'sha256 hash of the URL',
);
$schemadef['fields']['url'] = array (
'type' => 'text',
'description' => 'short URL (or any other kind of redirect) for file (id)',
);
unset($schemadef['primary key']);
$schema->ensureTable($table, $schemadef);
echo "DONE.\n";