diff --git a/server/migrations/2020-02-04-083657_invites/down.sql b/server/migrations/2020-02-04-083657_invites/down.sql index 291a97c..49ff40e 100644 --- a/server/migrations/2020-02-04-083657_invites/down.sql +++ b/server/migrations/2020-02-04-083657_invites/down.sql @@ -1 +1,2 @@ --- This file should undo anything in `up.sql` \ No newline at end of file +-- This file should undo anything in `up.sql` +DROP TABLE `invites`; \ No newline at end of file diff --git a/server/migrations/2020-02-07-231841_new_users/down.sql b/server/migrations/2020-02-07-231841_new_users/down.sql new file mode 100644 index 0000000..462e981 --- /dev/null +++ b/server/migrations/2020-02-07-231841_new_users/down.sql @@ -0,0 +1,2 @@ +-- This file should undo anything in `up.sql` +DROP TABLE `new_users`; \ No newline at end of file diff --git a/server/migrations/2020-02-07-231841_new_users/up.sql b/server/migrations/2020-02-07-231841_new_users/up.sql new file mode 100644 index 0000000..8b06b4d --- /dev/null +++ b/server/migrations/2020-02-07-231841_new_users/up.sql @@ -0,0 +1,6 @@ +-- Used only for those that have been given an invite and are currently using that invite +CREATE TABLE IF NOT EXISTS `new_users` ( + `token` bigint NOT NULL, + `invite_id` bigint NOT NULL, + PRIMARY KEY(`token`) +); \ No newline at end of file