mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-04-08 08:27:38 -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
@@ -51,6 +51,7 @@ CREATE TABLE IF NOT EXISTS `entry` (
|
||||
`is_favorite` BOOLEAN NOT NULL DEFAULT 0,
|
||||
`id_feed` INTEGER, -- 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 (`id_feed`,`guid`)
|
||||
@@ -82,6 +83,7 @@ CREATE TABLE IF NOT EXISTS `entrytmp` ( -- v1.7
|
||||
`is_favorite` BOOLEAN NOT NULL DEFAULT 0,
|
||||
`id_feed` INTEGER, -- 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 (`id_feed`,`guid`)
|
||||
|
||||
Reference in New Issue
Block a user