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