diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-04-01 13:51:57 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-04-01 13:51:57 +0200 |
commit | 8a6456629814039cfc623cdb279bcba06dacff50 (patch) | |
tree | b3ae2459651b6ad085588fca0c624c6df554deb3 /src/Wallabag/CoreBundle/DataFixtures | |
parent | 9c2b2aae70b06411336e6eb6ac43b3ebd30dc38c (diff) | |
download | wallabag-8a6456629814039cfc623cdb279bcba06dacff50.tar.gz wallabag-8a6456629814039cfc623cdb279bcba06dacff50.tar.zst wallabag-8a6456629814039cfc623cdb279bcba06dacff50.zip |
Use a better index for hashed_url
It'll most often be used in addition to the `user_id`.
Also, automatically generate the hash when saving the url.
Switch from `md5` to `sha1`.
Diffstat (limited to 'src/Wallabag/CoreBundle/DataFixtures')
-rw-r--r-- | src/Wallabag/CoreBundle/DataFixtures/EntryFixtures.php | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/DataFixtures/EntryFixtures.php b/src/Wallabag/CoreBundle/DataFixtures/EntryFixtures.php index 1b18cad6..024fcfdc 100644 --- a/src/Wallabag/CoreBundle/DataFixtures/EntryFixtures.php +++ b/src/Wallabag/CoreBundle/DataFixtures/EntryFixtures.php | |||
@@ -89,7 +89,6 @@ class EntryFixtures extends Fixture implements DependentFixtureInterface | |||
89 | foreach ($entries as $reference => $item) { | 89 | foreach ($entries as $reference => $item) { |
90 | $entry = new Entry($this->getReference($item['user'])); | 90 | $entry = new Entry($this->getReference($item['user'])); |
91 | $entry->setUrl($item['url']); | 91 | $entry->setUrl($item['url']); |
92 | $entry->setHashedUrl(hash('md5', $item['url'])); | ||
93 | $entry->setReadingTime($item['reading_time']); | 92 | $entry->setReadingTime($item['reading_time']); |
94 | $entry->setDomainName($item['domain']); | 93 | $entry->setDomainName($item['domain']); |
95 | $entry->setMimetype($item['mime']); | 94 | $entry->setMimetype($item['mime']); |