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:
Alexandre Alapetite
2022-07-19 15:17:08 +02:00
committed by GitHub
parent 2d807e06b1
commit 0866fdaee8
9 changed files with 116 additions and 21 deletions

View File

@@ -49,6 +49,7 @@ CREATE TABLE IF NOT EXISTS `_entry` (
"is_favorite" SMALLINT NOT NULL DEFAULT 0,
"id_feed" INT, -- 1.20.0
"tags" VARCHAR(1023),
"attributes" TEXT, -- v1.20.0
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" SMALLINT NOT NULL DEFAULT 0,
"id_feed" INT, -- 1.20.0
"tags" VARCHAR(1023),
"attributes" TEXT, -- v1.20.0
FOREIGN KEY ("id_feed") REFERENCES `_feed` ("id") ON DELETE CASCADE ON UPDATE CASCADE,
UNIQUE ("id_feed","guid")
);