From 13282318309ea5c689c55a4af31f1de40100884d Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Thu, 4 Apr 2013 23:33:59 -0400 Subject: [PATCH 1/5] VRFS-282 changes to support real-time notification updates in sidebar --- manifest | 3 ++- up/notification_type_col_rename.sql | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 up/notification_type_col_rename.sql diff --git a/manifest b/manifest index affb2f241..360810ba8 100644 --- a/manifest +++ b/manifest @@ -53,4 +53,5 @@ invited_users.sql collapse_user_and_admin.sql default_gender_to_null.sql subscribe_email.sql -notifications.sql \ No newline at end of file +notifications.sql +notification_type_col_rename.sql \ No newline at end of file diff --git a/up/notification_type_col_rename.sql b/up/notification_type_col_rename.sql new file mode 100644 index 000000000..5befa0477 --- /dev/null +++ b/up/notification_type_col_rename.sql @@ -0,0 +1 @@ +alter table notifications rename column type to description; \ No newline at end of file From c46a2c2a2cbc8c7e5411ee9479240712b9726e7b Mon Sep 17 00:00:00 2001 From: Seth Call Date: Wed, 10 Apr 2013 01:13:40 -0500 Subject: [PATCH 2/5] * requiring md5 and size of artifacts so that we can report them in artifact REST API --- manifest | 3 ++- up/artifact_metadata.sql | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 up/artifact_metadata.sql diff --git a/manifest b/manifest index affb2f241..20b88102d 100644 --- a/manifest +++ b/manifest @@ -53,4 +53,5 @@ invited_users.sql collapse_user_and_admin.sql default_gender_to_null.sql subscribe_email.sql -notifications.sql \ No newline at end of file +notifications.sql +artifact_metadata.sql diff --git a/up/artifact_metadata.sql b/up/artifact_metadata.sql new file mode 100644 index 000000000..77905a8d3 --- /dev/null +++ b/up/artifact_metadata.sql @@ -0,0 +1,3 @@ +-- add a size field and make md5 required +ALTER TABLE artifact_updates ADD COLUMN size INTEGER NOT NULL; +ALTER TABLE artifact_updates ALTER COLUMN sha1 SET NOT NULL; From e9137aef38b4ccddc75f1595be6850c09d9786b4 Mon Sep 17 00:00:00 2001 From: Mike Slemmer Date: Fri, 12 Apr 2013 15:34:41 -0700 Subject: [PATCH 3/5] mixes migration --- manifest | 1 + 1 file changed, 1 insertion(+) diff --git a/manifest b/manifest index c50694c9d..0d9cb8d0d 100644 --- a/manifest +++ b/manifest @@ -56,3 +56,4 @@ subscribe_email.sql notifications.sql notification_type_col_rename.sql artifact_metadata.sql +mixes.sql From 481919d1f347ce3f394a516387120815da18e809 Mon Sep 17 00:00:00 2001 From: Mike Slemmer Date: Fri, 12 Apr 2013 15:34:59 -0700 Subject: [PATCH 4/5] add the actual file --- up/mixes.sql | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 up/mixes.sql diff --git a/up/mixes.sql b/up/mixes.sql new file mode 100644 index 000000000..376dc2d30 --- /dev/null +++ b/up/mixes.sql @@ -0,0 +1,18 @@ +-- mixes +CREATE TABLE mixes( + id VARCHAR(64) PRIMARY KEY DEFAULT uuid_generate_v4(), + recording_id VARCHAR(64) NOT NULL REFERENCES recordings(id) ON DELETE CASCADE, + owner_id VARCHAR(64) NOT NULL REFERENCES users(id) ON DELETE CASCADE, + description VARCHAR(1024) NOT NULL, + spec TEXT NOT NULL, + url VARCHAR(512) DEFAULT NULL, + mix_server VARCHAR(64) DEFAULT NULL, + started_at TIMESTAMP DEFAULT NULL, + completed_at TIMESTAMP DEFAULT NULL, + created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, + updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP +); + +CREATE INDEX index_started_at ON mixes USING btree (started_at); +CREATE INDEX index_completed_at ON mixes USING btree (completed_at); + From 22094206b455d9a0e46c8f01ae7f56b4fcbb80bb Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Sat, 13 Apr 2013 22:56:19 -0400 Subject: [PATCH 5/5] add friend request id to notifications table --- manifest | 3 ++- up/notifications_add_friend_req_id.sql | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 up/notifications_add_friend_req_id.sql diff --git a/manifest b/manifest index 360810ba8..b41bd381a 100644 --- a/manifest +++ b/manifest @@ -54,4 +54,5 @@ collapse_user_and_admin.sql default_gender_to_null.sql subscribe_email.sql notifications.sql -notification_type_col_rename.sql \ No newline at end of file +notification_type_col_rename.sql +notifications_add_friend_req_id.sql \ No newline at end of file diff --git a/up/notifications_add_friend_req_id.sql b/up/notifications_add_friend_req_id.sql new file mode 100644 index 000000000..c1e1f53f5 --- /dev/null +++ b/up/notifications_add_friend_req_id.sql @@ -0,0 +1 @@ +alter table notifications add COLUMN friend_request_id varchar(64) REFERENCES friend_requests(id); \ No newline at end of file