mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-18 13:24:37 -04:00
Add database field attributes for entries (#4444)
* Add database field attributes for entries Just like we already have for categories, feeds, etc. No core use yet, but allows in particular extensions to save per-entry data * Fix PHPStand * Fix wrong variable
This commit is contained in:
committed by
GitHub
parent
2d807e06b1
commit
0866fdaee8
@@ -55,6 +55,7 @@ CREATE TABLE IF NOT EXISTS `_entry` (
|
||||
`is_favorite` BOOLEAN NOT NULL DEFAULT 0,
|
||||
`id_feed` INT, -- 1.20.0
|
||||
`tags` VARCHAR(1023),
|
||||
`attributes` TEXT, -- v1.20.0
|
||||
PRIMARY KEY (`id`),
|
||||
FOREIGN KEY (`id_feed`) REFERENCES `_feed`(`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
UNIQUE KEY (`id_feed`,`guid`), -- v0.7
|
||||
@@ -87,6 +88,7 @@ CREATE TABLE IF NOT EXISTS `_entrytmp` ( -- v1.7
|
||||
`is_favorite` BOOLEAN NOT NULL DEFAULT 0,
|
||||
`id_feed` INT, -- 1.20.0
|
||||
`tags` VARCHAR(1023),
|
||||
`attributes` TEXT, -- v1.20.0
|
||||
PRIMARY KEY (`id`),
|
||||
FOREIGN KEY (`id_feed`) REFERENCES `_feed`(`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
UNIQUE KEY (`id_feed`,`guid`),
|
||||
|
||||
Reference in New Issue
Block a user