Skip to content

Commit

Permalink
Change metadata column to jsonb
Browse files Browse the repository at this point in the history
Signed-off-by: William <[email protected]>
  • Loading branch information
kwesidev committed Dec 15, 2023
1 parent 2a2adaf commit b725c66
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions db/migrations/000004_metadata_change_type.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BEGIN;
ALTER TABLE users DROP COLUMN meta_data;
COMMIT;
4 changes: 4 additions & 0 deletions db/migrations/000004_metadata_change_type.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
BEGIN;
ALTER TABLE users DROP COLUMN meta_data;
ALTER TABLE users ADD COLUMN meta_data JSONB DEFAULT '{}' NOT NULL;
COMMIT;

0 comments on commit b725c66

Please sign in to comment.