-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dockerize
- Loading branch information
Showing
17 changed files
with
283 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
class Startup < ActiveRecord::Migration | ||
def change | ||
|
||
execute <<-SQL | ||
begin | ||
execute "alter table albums drop key `in_artist`;" | ||
|
||
execute "alter table albums drop key `external_id`;" | ||
|
||
alter table albums drop key `in_artist`; | ||
alter table albums drop key `external_id`; | ||
execute "alter table artists drop key `external_id`;" | ||
execute "alter table artists drop key in_artist;" | ||
execute "alter table artists drop key index_artist;" | ||
|
||
alter table artists drop key `external_id`; | ||
alter table artists drop key in_artist; | ||
alter table artists drop key index_artist; | ||
execute "alter table migrate_cache drop key full;" | ||
execute "alter table nerve_cache drop key `external_id`, drop key `n_uuid`, drop key `n_tr`, drop key `n_td`;" | ||
|
||
alter table migrate_cache drop key full; | ||
alter table nerve_cache drop key `external_id`, drop key `n_uuid`, drop key `n_tr`, drop key `n_td`; | ||
execute "alter table tracks drop key in_artist, drop key in_album, drop key in_title, drop key index_title;" | ||
|
||
alter table tracks drop key in_artist, drop key in_album, drop key in_title, drop key index_title, drop key external_id; | ||
alter table users drop key external_ref; | ||
SQL | ||
execute "alter table users drop key external_ref;" | ||
rescue | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class UpdateTrackCols < ActiveRecord::Migration | ||
def change | ||
|
||
change_column :tracks, :explicit, :boolean | ||
change_column :tracks, :flagged, :boolean | ||
change_column :tracks, :explicit, :boolean | ||
change_column :tracks, :instrumental, :boolean | ||
change_column :tracks, :is_library, :boolean | ||
change_column :tracks, :explicit, :boolean | ||
change_column :tracks, :is_automation, :boolean | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class ColAb < ActiveRecord::Migration | ||
def change | ||
|
||
add_column :tracks, :category_a, :integer | ||
add_column :tracks, :category_b, :integer | ||
|
||
end | ||
end |
Oops, something went wrong.