From 20297cb79186093fa78fd8618bb81d052d398f92 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 6 Nov 2020 13:18:56 +0100 Subject: [PATCH] Forgot to add migrations --- migrations/2020-11-05-152724_activity_remove_user_id/down.sql | 2 ++ migrations/2020-11-05-152724_activity_remove_user_id/up.sql | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 migrations/2020-11-05-152724_activity_remove_user_id/down.sql create mode 100644 migrations/2020-11-05-152724_activity_remove_user_id/up.sql diff --git a/migrations/2020-11-05-152724_activity_remove_user_id/down.sql b/migrations/2020-11-05-152724_activity_remove_user_id/down.sql new file mode 100644 index 000000000..bb093f1bb --- /dev/null +++ b/migrations/2020-11-05-152724_activity_remove_user_id/down.sql @@ -0,0 +1,2 @@ +ALTER TABLE activity ADD COLUMN user_id INTEGER; +ALTER TABLE activity DROP COLUMN sensitive; \ No newline at end of file diff --git a/migrations/2020-11-05-152724_activity_remove_user_id/up.sql b/migrations/2020-11-05-152724_activity_remove_user_id/up.sql new file mode 100644 index 000000000..22a1a2fae --- /dev/null +++ b/migrations/2020-11-05-152724_activity_remove_user_id/up.sql @@ -0,0 +1,2 @@ +ALTER TABLE activity DROP COLUMN user_id; +ALTER TABLE activity ADD COLUMN sensitive BOOLEAN DEFAULT TRUE; \ No newline at end of file