Some cleanup

Also, do not run the hashed_url migration into a Doctrine migration
This commit is contained in:
Jeremy Benoist
2019-04-01 14:34:20 +02:00
parent 8a64566298
commit c579ce2306
5 changed files with 23 additions and 15 deletions

View File

@ -24,11 +24,6 @@ class Version20190401105353 extends WallabagMigration
'notnull' => false,
]);
// sqlite doesn't have the MD5 function by default
if ('sqlite' !== $this->connection->getDatabasePlatform()->getName()) {
$this->addSql('UPDATE ' . $this->getTable('entry') . ' SET hashed_url = MD5(url)');
}
$entryTable->addIndex(['user_id', 'hashed_url'], 'hashed_url_user_id');
}