Skip to content

Commit

Permalink
fix(kb): fix db migration error (#53)
Browse files Browse the repository at this point in the history
Because

there are some old data already, it cause new colum cannot be not null
without default

This commit

remove not null
  • Loading branch information
Yougigun committed Jul 26, 2024
1 parent 0a11838 commit 7cc65b7
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
BEGIN;
-- Add the new column to the knowledge_base table
ALTER TABLE knowledge_base
ADD COLUMN creator_uid UUID NOT NULL;

ALTER TABLE knowledge_base ADD COLUMN creator_uid UUID;
-- Add comment for the new column
COMMENT ON COLUMN knowledge_base.creator_uid IS 'UUID of the creator of the knowledge base';

COMMIT;

0 comments on commit 7cc65b7

Please sign in to comment.