This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add support for db evolutions: | |
Download the sqlite-dialect from here: https://github.com/gwenn/sqlite-dialect | |
Compile it to a jar file. | |
Add the jar file the app/lib folder. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT i.*, | |
n.title, | |
n.url, | |
'NULL' as description | |
FROM items i JOIN news n ON n.item_id = i.id | |
UNION ALL | |
SELECT i.*, | |
j.title, | |
j.url, | |
'NULL' as description |