Unverified Commit e08440d7 authored by Benjamin Neff's avatar Benjamin Neff
Browse files

Merge migrations from before 0.6.0.0 to 0000_create_schema.rb

closes #7580
parent b040f857
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
* Sort notifications by last interaction [#7568](https://github.com/diaspora/diaspora/pull/7568)
* Remove tiff support from photos [#7576](https://github.com/diaspora/diaspora/pull/7576)
* Remove reference from reshares when original post is deleted [#7578](https://github.com/diaspora/diaspora/pull/7578)
* Merge migrations from before 0.6.0.0 to CreateSchema [#7580](https://github.com/diaspora/diaspora/pull/7580)

## Bug fixes
* Fix displaying polls with long answers [#7579](https://github.com/diaspora/diaspora/pull/7579)
+307 −125

File changed.

Preview size limit exceeded, changes collapsed.

+0 −5
Original line number Diff line number Diff line
class AddFacebookIdToPost < ActiveRecord::Migration[4.2]
  def change
    add_column :posts, :facebook_id, :string
  end
end
+0 −9
Original line number Diff line number Diff line
class FixDefaultImageUrlFromProfile < ActiveRecord::Migration[4.2]
  def up
    execute("UPDATE profiles SET image_url = REPLACE(image_url, 'images', 'assets'), image_url_small = REPLACE(image_url_small, 'images', 'assets'), image_url_medium = REPLACE(image_url_medium, 'images', 'assets') WHERE image_url LIKE '%images/user/default.png';")
  end

  def down
    execute("UPDATE profiles SET image_url = REPLACE(image_url, 'assets', 'images'), image_url_small = REPLACE(image_url_small, 'assets', 'images'), image_url_medium = REPLACE(image_url_medium, 'assets', 'images') WHERE image_url LIKE '%assets/user/default.png';")
  end
end
+0 −6
Original line number Diff line number Diff line
class AddTweetIdToPost < ActiveRecord::Migration[4.2]
  def change
  	add_column :posts, :tweet_id, :string
  	add_index :posts, ['tweet_id'], :length => { "tweet_id" => 191 }
  end
end
Loading