]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/DoctrineMigrations/Version20190401105353.php
Merge remote-tracking branch 'origin/master' into 2.4
[github/wallabag/wallabag.git] / app / DoctrineMigrations / Version20190401105353.php
index c1c220537e21be19530301e84adbb52b7af79a2e..d27962dbedbdd94c02e4c4c27410dddbb04c33a0 100644 (file)
@@ -24,12 +24,7 @@ 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');
+        $entryTable->addIndex(['user_id', 'hashed_url'], 'hashed_url_user_id', [], ['lengths' => [null, 40]]);
     }
 
     /**