mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-25 14:08:25 +00:00
Store item based proposals in separate table
Classifier don't work on each attachment, but on all. So the results must not be stored at an attachment. This reverts some previous changes to put the classifier results for item entities into its own table.
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
ALTER TABLE "attachmentmeta"
|
||||
ADD COLUMN "classify_proposals" text;
|
||||
|
||||
CREATE TABLE "item_proposal" (
|
||||
"itemid" varchar(254) not null primary key,
|
||||
"classifier_proposals" text not null,
|
||||
"classifier_tags" text not null,
|
||||
"created" timestamp not null,
|
||||
foreign key ("itemid") references "item"("itemid")
|
||||
);
|
||||
|
@ -1,3 +1,7 @@
|
||||
ALTER TABLE `attachmentmeta`
|
||||
ADD COLUMN (`classify_proposals` mediumtext);
|
||||
|
||||
CREATE TABLE `item_proposal` (
|
||||
`itemid` varchar(254) not null primary key,
|
||||
`classifier_proposals` mediumtext not null,
|
||||
`classifier_tags` mediumtext not null,
|
||||
`created` timestamp not null,
|
||||
foreign key (`itemid`) references `item`(`itemid`)
|
||||
);
|
||||
|
@ -1,3 +1,7 @@
|
||||
ALTER TABLE "attachmentmeta"
|
||||
ADD COLUMN "classify_proposals" text;
|
||||
|
||||
CREATE TABLE "item_proposal" (
|
||||
"itemid" varchar(254) not null primary key,
|
||||
"classifier_proposals" text not null,
|
||||
"classifier_tags" text not null,
|
||||
"created" timestamp not null,
|
||||
foreign key ("itemid") references "item"("itemid")
|
||||
);
|
||||
|
Reference in New Issue
Block a user