Merge pull request #4098 from embs/feature/3795-fix-default-profiles-image-url
Fix default image url in profiles table. Closes #3795
This commit is contained in:
commit
0f05506f8d
3 changed files with 11 additions and 1 deletions
|
|
@ -113,6 +113,7 @@ by them self.
|
|||
* Send profile alongside notification [#3976] (https://github.com/diaspora/diaspora/issues/3976)
|
||||
* Fix off-center close button image on intro popovers [#3841](https://github.com/diaspora/diaspora/pull/3841)
|
||||
* Remove unnecessary dotted CSS borders. [#2940](https://github.com/diaspora/diaspora/issues/2940)
|
||||
* Fix default image url in profiles table. [#3795](https://github.com/diaspora/diaspora/issues/3795)
|
||||
|
||||
## Features
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
class FixDefaultImageUrlFromProfile < ActiveRecord::Migration
|
||||
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
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20130207231310) do
|
||||
ActiveRecord::Schema.define(:version => 20130404211624) do
|
||||
|
||||
create_table "account_deletions", :force => true do |t|
|
||||
t.string "diaspora_handle"
|
||||
|
|
|
|||
Loading…
Reference in a new issue