aboutsummaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2019-04-01 14:34:20 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2019-04-01 14:34:20 +0200
commitc579ce2306297674c56376a2ab5c8ba66a272253 (patch)
tree03f8fdd7c7ee93fd0527d46f2690a81cf6d2d286 /app
parent8a6456629814039cfc623cdb279bcba06dacff50 (diff)
downloadwallabag-c579ce2306297674c56376a2ab5c8ba66a272253.tar.gz
wallabag-c579ce2306297674c56376a2ab5c8ba66a272253.tar.zst
wallabag-c579ce2306297674c56376a2ab5c8ba66a272253.zip
Some cleanup
Also, do not run the hashed_url migration into a Doctrine migration
Diffstat (limited to 'app')
-rw-r--r--app/DoctrineMigrations/Version20190401105353.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/DoctrineMigrations/Version20190401105353.php b/app/DoctrineMigrations/Version20190401105353.php
index c1c22053..94ebb1ab 100644
--- a/app/DoctrineMigrations/Version20190401105353.php
+++ b/app/DoctrineMigrations/Version20190401105353.php
@@ -24,11 +24,6 @@ class Version20190401105353 extends WallabagMigration
24 'notnull' => false, 24 'notnull' => false,
25 ]); 25 ]);
26 26
27 // sqlite doesn't have the MD5 function by default
28 if ('sqlite' !== $this->connection->getDatabasePlatform()->getName()) {
29 $this->addSql('UPDATE ' . $this->getTable('entry') . ' SET hashed_url = MD5(url)');
30 }
31
32 $entryTable->addIndex(['user_id', 'hashed_url'], 'hashed_url_user_id'); 27 $entryTable->addIndex(['user_id', 'hashed_url'], 'hashed_url_user_id');
33 } 28 }
34 29