* perfdata merged
This commit is contained in:
commit
226f4b42bb
4
manifest
4
manifest
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
@ -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);
|
||||
|
||||
|
|
@ -0,0 +1 @@
|
|||
alter table notifications rename column type to description;
|
||||
|
|
@ -0,0 +1 @@
|
|||
alter table notifications add COLUMN friend_request_id varchar(64) REFERENCES friend_requests(id);
|
||||
Loading…
Reference in New Issue