* delete existing tracks on older migration that will break existing deployments

This commit is contained in:
Seth Call 2013-12-30 19:16:08 +00:00
parent 73b04ba5fc
commit c3954d65f0
2 changed files with 3 additions and 2 deletions

View File

@ -24,4 +24,5 @@ ALTER TABLE recorded_tracks ADD COLUMN client_id VARCHAR(64) NOT NULL;
ALTER TABLE recorded_tracks ADD COLUMN track_id VARCHAR(64) NOT NULL;
-- so that server can correlate to client track
DELETE FROM tracks;
ALTER TABLE tracks ADD COLUMN client_track_id VARCHAR(64) NOT NULL;

View File

@ -4,7 +4,7 @@
object @claimed_recording
attributes :id, :name, :is_public, :is_downloadable
attributes :id, :name, :description, :is_public, :is_downloadable
child(:recording => :recording) {
attributes :id, :created_at, :duration
@ -18,7 +18,7 @@ child(:recording => :recording) {
}
child(:recorded_tracks => :recorded_tracks) {
attributes :id, :fully_uploaded, :url
attributes :id, :fully_uploaded, :url, :client_track_id
child(:instrument => :instrument) {
attributes :id, :description
}