* perfdata merged

This commit is contained in:
Seth Call 2013-04-15 21:11:12 -05:00
commit 226f4b42bb
5 changed files with 27 additions and 0 deletions

View File

@ -54,4 +54,8 @@ collapse_user_and_admin.sql
default_gender_to_null.sql
subscribe_email.sql
notifications.sql
notification_type_col_rename.sql
notifications_add_friend_req_id.sql
artifact_metadata.sql
mixes.sql
perf_data.sql

3
up/artifact_metadata.sql Normal file
View File

@ -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;

18
up/mixes.sql Normal file
View File

@ -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);

View File

@ -0,0 +1 @@
alter table notifications rename column type to description;

View File

@ -0,0 +1 @@
alter table notifications add COLUMN friend_request_id varchar(64) REFERENCES friend_requests(id);