add source column to entity_labels table
This commit is contained in:
@ -13,4 +13,7 @@ export class EntityLabel {
|
||||
|
||||
@Column('uuid')
|
||||
highlightId?: string | null
|
||||
|
||||
@Column('text')
|
||||
source!: string
|
||||
}
|
||||
|
||||
9
packages/db/migrations/0148.do.add_source_to_entity_labels.sql
Executable file
9
packages/db/migrations/0148.do.add_source_to_entity_labels.sql
Executable 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;
|
||||
9
packages/db/migrations/0148.undo.add_source_to_entity_labels.sql
Executable file
9
packages/db/migrations/0148.undo.add_source_to_entity_labels.sql
Executable 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;
|
||||
Reference in New Issue
Block a user