diff --git a/db/migrations/000004_metadata_change_type.down.sql b/db/migrations/000004_metadata_change_type.down.sql new file mode 100644 index 0000000..71df224 --- /dev/null +++ b/db/migrations/000004_metadata_change_type.down.sql @@ -0,0 +1,3 @@ +BEGIN; +ALTER TABLE users DROP COLUMN meta_data; +COMMIT; \ No newline at end of file diff --git a/db/migrations/000004_metadata_change_type.up.sql b/db/migrations/000004_metadata_change_type.up.sql new file mode 100644 index 0000000..94ece35 --- /dev/null +++ b/db/migrations/000004_metadata_change_type.up.sql @@ -0,0 +1,4 @@ +BEGIN; +ALTER TABLE users DROP COLUMN meta_data; +ALTER TABLE users ADD COLUMN meta_data JSONB DEFAULT '{}' NOT NULL; +COMMIT; \ No newline at end of file