Work on import from discogs. Switching to mysql in local dev
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddMasterToAlbum < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :albums, :master, :boolean
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,10 @@
|
||||
class CreateArtistAliases < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :artist_aliases do |t|
|
||||
t.integer :artist_id
|
||||
t.string :name
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddOriginalNameToArtist < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :artists, :original_name, :string
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,12 @@
|
||||
class CreateTrackArtists < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :track_artists do |t|
|
||||
t.integer :track_id
|
||||
t.integer :artist_id
|
||||
t.boolean :main
|
||||
t.string :join
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
+19
-1
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20110920164044) do
|
||||
ActiveRecord::Schema.define(:version => 20110921182606) do
|
||||
|
||||
create_table "albums", :force => true do |t|
|
||||
t.string "name"
|
||||
@@ -24,6 +24,14 @@ ActiveRecord::Schema.define(:version => 20110920164044) do
|
||||
t.string "mbid"
|
||||
t.integer "has_pic"
|
||||
t.integer "status"
|
||||
t.boolean "master"
|
||||
end
|
||||
|
||||
create_table "artist_aliases", :force => true do |t|
|
||||
t.integer "artist_id"
|
||||
t.string "name"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "artist_links", :force => true do |t|
|
||||
@@ -45,6 +53,7 @@ ActiveRecord::Schema.define(:version => 20110920164044) do
|
||||
t.integer "status"
|
||||
t.integer "listeners"
|
||||
t.integer "approved"
|
||||
t.string "original_name"
|
||||
end
|
||||
|
||||
create_table "delayed_jobs", :force => true do |t|
|
||||
@@ -114,6 +123,15 @@ ActiveRecord::Schema.define(:version => 20110920164044) do
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "track_artists", :force => true do |t|
|
||||
t.integer "track_id"
|
||||
t.integer "artist_id"
|
||||
t.boolean "main"
|
||||
t.string "join"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "tracks", :force => true do |t|
|
||||
t.string "name"
|
||||
t.integer "album_id"
|
||||
|
||||
Reference in New Issue
Block a user