Fix lettre (#706)

* Use lettre from crates.io instead of git

* fix previous migration

they were failing on some versions of sqlite and postgres
This commit is contained in:
fdb-hiroshima
2019-12-16 20:22:46 +01:00
committed by Ana Gelez
parent 6c8944315a
commit a9441a8804
5 changed files with 21 additions and 23 deletions
@@ -3,7 +3,8 @@ INSERT INTO timeline (post_id, timeline_id)
WHERE timeline_definition.query = 'all';
INSERT INTO timeline (post_id, timeline_id)
SELECT posts.id,timeline_definition.id FROM posts,timeline_definition
SELECT posts.id,timeline_definition.id FROM posts
CROSS JOIN timeline_definition
INNER JOIN blogs ON posts.blog_id = blogs.id
INNER JOIN instances ON blogs.instance_id = instances.id
WHERE timeline_definition.query = 'local' and instances.local = true;