add source column to entity_labels table

This commit is contained in:
Hongbo Wu
2023-12-13 14:35:24 +08:00
parent 79baee56c6
commit 56a7ae4dc1
3 changed files with 21 additions and 0 deletions

View File

@ -13,4 +13,7 @@ export class EntityLabel {
@Column('uuid')
highlightId?: string | null
@Column('text')
source!: string
}

View File

@ -0,0 +1,9 @@
-- Type: DO
-- Name: add_source_to_entity_labels
-- Description: Add source column to omnivore.entity_labels table
BEGIN;
ALTER TABLE omnivore.entity_labels ADD COLUMN source TEXT NOT NULL DEFAULT 'user';
COMMIT;

View File

@ -0,0 +1,9 @@
-- Type: UNDO
-- Name: add_source_to_entity_labels
-- Description: Add source column to omnivore.entity_labels table
BEGIN;
ALTER TABLE omnivore.entity_labels DROP COLUMN source;
COMMIT;