Compare commits
2 Commits
5227751dca
...
e51915d1cd
Author | SHA1 | Date | |
---|---|---|---|
e51915d1cd | |||
3a654f6ede |
@ -511,6 +511,7 @@ class Repository(
|
|||||||
item.link,
|
item.link,
|
||||||
item.sourcetitle,
|
item.sourcetitle,
|
||||||
item.tags.joinToString(","),
|
item.tags.joinToString(","),
|
||||||
|
item.author,
|
||||||
item.id.toString()
|
item.id.toString()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
ALTER TABLE ITEM ADD COLUMN `author` TEXT;
|
ALTER TABLE ITEM ADD COLUMN `author` TEXT NOT NULL;
|
@ -0,0 +1,6 @@
|
|||||||
|
CREATE TABLE ITEM_BACKUP AS SELECT `id`, `datetime`, `title`, `content`,
|
||||||
|
`unread`, `starred`, `thumbnail`, `icon`, `link`, `sourcetitle`,
|
||||||
|
`tags` FROM ITEM;
|
||||||
|
ALTER TABLE ITEM_BACKUP ADD COLUMN `author` TEXT;
|
||||||
|
DROP TABLE ITEM;
|
||||||
|
ALTER TABLE ITEM_BACKUP RENAME TO ITEM;
|
@ -31,4 +31,4 @@ deleteItemsWhereSource:
|
|||||||
DELETE FROM ITEM WHERE `sourcetitle` = ?;
|
DELETE FROM ITEM WHERE `sourcetitle` = ?;
|
||||||
|
|
||||||
updateItem:
|
updateItem:
|
||||||
UPDATE ITEM SET `datetime` = ?, `title` = ?, `content` = ?, `unread` = ?, `starred` = ?, `thumbnail` = ?, `icon` = ?, `link` = ?, `sourcetitle` = ?, `tags` = ? WHERE `id` = ?;
|
UPDATE ITEM SET `datetime` = ?, `title` = ?, `content` = ?, `unread` = ?, `starred` = ?, `thumbnail` = ?, `icon` = ?, `link` = ?, `sourcetitle` = ?, `tags` = ?, `author` = ? WHERE `id` = ?;
|
Loading…
Reference in New Issue
Block a user