diff --git a/migrations/20220913002925_add_uuid_to_list.down.sql b/migrations/20220913002925_add_uuid_to_list.down.sql new file mode 100644 index 0000000..a722569 --- /dev/null +++ b/migrations/20220913002925_add_uuid_to_list.down.sql @@ -0,0 +1,3 @@ +-- Add down migration script here +ALTER TABLE list +DROP COLUMN uuid; diff --git a/migrations/20220913002925_add_uuid_to_list.up.sql b/migrations/20220913002925_add_uuid_to_list.up.sql new file mode 100644 index 0000000..68232a6 --- /dev/null +++ b/migrations/20220913002925_add_uuid_to_list.up.sql @@ -0,0 +1,3 @@ +-- Add up migration script here +ALTER TABLE list +ADD COLUMN uuid VARCHAR(36) NOT NULL DEFAULT gen_random_uuid(); diff --git a/migrations/20220913012010_add_uuid_to_notes.down.sql b/migrations/20220913012010_add_uuid_to_notes.down.sql new file mode 100644 index 0000000..1d8d494 --- /dev/null +++ b/migrations/20220913012010_add_uuid_to_notes.down.sql @@ -0,0 +1,3 @@ +-- Add down migration script here +ALTER TABLE note +DROP COLUMN uuid; diff --git a/migrations/20220913012010_add_uuid_to_notes.up.sql b/migrations/20220913012010_add_uuid_to_notes.up.sql new file mode 100644 index 0000000..325592e --- /dev/null +++ b/migrations/20220913012010_add_uuid_to_notes.up.sql @@ -0,0 +1,3 @@ +-- Add up migration script here +ALTER TABLE note +ADD COLUMN uuid VARCHAR(36) NOT NULL DEFAULT gen_random_uuid();