Merge
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
|
||||
+31
-1
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20110919003651) do
|
||||
ActiveRecord::Schema.define(:version => 20110920164044) do
|
||||
|
||||
create_table "albums", :force => true do |t|
|
||||
t.string "name"
|
||||
@@ -26,6 +26,14 @@ ActiveRecord::Schema.define(:version => 20110919003651) do
|
||||
t.integer "status"
|
||||
end
|
||||
|
||||
create_table "artist_links", :force => true do |t|
|
||||
t.integer "artist_id"
|
||||
t.string "service"
|
||||
t.string "url"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "artists", :force => true do |t|
|
||||
t.string "name"
|
||||
t.text "desc"
|
||||
@@ -63,6 +71,28 @@ ActiveRecord::Schema.define(:version => 20110919003651) do
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "local_brainz_releases", :force => true do |t|
|
||||
t.string "mbid"
|
||||
t.string "title"
|
||||
t.string "status"
|
||||
t.date "date"
|
||||
t.string "country"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.integer "album_id"
|
||||
t.string "format"
|
||||
end
|
||||
|
||||
create_table "local_brainz_tracks", :force => true do |t|
|
||||
t.integer "position"
|
||||
t.string "recording_id"
|
||||
t.string "title"
|
||||
t.integer "length"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.integer "release_id"
|
||||
end
|
||||
|
||||
create_table "playlist_items", :force => true do |t|
|
||||
t.integer "playlist_id"
|
||||
t.integer "track_id"
|
||||
|
||||
Reference in New Issue
Block a user