Artist wipe, local brainz
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
class CreateLocalBrainzReleases < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :local_brainz_releases do |t|
|
||||
t.string :mbid
|
||||
t.string :title
|
||||
t.string :status
|
||||
t.date :date
|
||||
t.string :country
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,12 @@
|
||||
class CreateLocalBrainzTracks < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :local_brainz_tracks do |t|
|
||||
t.integer :position
|
||||
t.string :recording_id
|
||||
t.string :title
|
||||
t.integer :length
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,11 @@
|
||||
class CreateArtistLinks < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :artist_links do |t|
|
||||
t.integer :artist_id
|
||||
t.string :service
|
||||
t.string :url
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddArtistIdToLocalBrainzRelease < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :local_brainz_releases, :artist_id, :integer
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddFormatToLocalBrainzRelease < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :local_brainz_releases, :format, :string
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddReleaseIdToLocalBrainzTrack < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :local_brainz_tracks, :release_id, :integer
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,9 @@
|
||||
class RenameFieldInLocalBrainzReleases < ActiveRecord::Migration
|
||||
def up
|
||||
rename_column :local_brainz_releases, :artist_id, :album_id
|
||||
end
|
||||
|
||||
def down
|
||||
rename_column :local_brainz_releases, :album_id, :artist_id
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user