From c2c82aec9b4148d8209bbe8326db84f0677403f2 Mon Sep 17 00:00:00 2001 From: shockrah Date: Fri, 7 Feb 2020 15:23:05 -0800 Subject: [PATCH] new_users cache table reset sql added for dev purposes --- server/migrations/2020-02-04-083657_invites/down.sql | 3 ++- server/migrations/2020-02-07-231841_new_users/down.sql | 2 ++ server/migrations/2020-02-07-231841_new_users/up.sql | 6 ++++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 server/migrations/2020-02-07-231841_new_users/down.sql create mode 100644 server/migrations/2020-02-07-231841_new_users/up.sql 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