diff options
author | Benjamin Neff <benjamin@coding4coffee.ch> | 2016-09-20 11:13:34 +0300 |
---|---|---|
committer | Dennis Schubert <mail@dennis-schubert.de> | 2016-09-20 11:21:49 +0300 |
commit | b4455aaf25a484b72d4df1795cb1f118b24d3434 (patch) | |
tree | a6be9d3c7f4c7e0417f4f16effaceef6a5f2dc90 /db | |
parent | ffb442266f0703f6fec4392e2a0655a9100d4242 (diff) |
Fix 20160906225138_fix_photos_share_visibilities.rb for postgres
Turns out that postgres can't handle "0" as boolean, but mysql can
handle "false".
closes #7115#pullrequestreview-699342
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20160906225138_fix_photos_share_visibilities.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20160906225138_fix_photos_share_visibilities.rb b/db/migrate/20160906225138_fix_photos_share_visibilities.rb index d14ca502c..3621fe28b 100644 --- a/db/migrate/20160906225138_fix_photos_share_visibilities.rb +++ b/db/migrate/20160906225138_fix_photos_share_visibilities.rb @@ -21,7 +21,7 @@ class FixPhotosShareVisibilities < ActiveRecord::Migration "INNER JOIN posts ON posts.guid = photos.status_message_guid AND posts.type = 'StatusMessage' " \ "LEFT OUTER JOIN share_visibilities ON share_visibilities.shareable_id = photos.id " \ "INNER JOIN share_visibilities AS post_visibility ON post_visibility.shareable_id = posts.id " \ - "WHERE photos.public = 0 AND share_visibilities.shareable_id IS NULL " \ + "WHERE photos.public = false AND share_visibilities.shareable_id IS NULL " \ "AND post_visibility.shareable_type = 'Post'" end |