mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
add source column to entity_labels table
This commit is contained in:
parent
79baee56c6
commit
56a7ae4dc1
3 changed files with 21 additions and 0 deletions
|
|
@ -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;
|
||||
Loading…
Reference in a new issue