Skip to content

Commit

Permalink
Merge pull request diaspora#4337 from oliverbarnes/4312-index-key-too…
Browse files Browse the repository at this point in the history
…-long

Limit index key length when creating oembed caches

Conflicts:
	db/schema.rb
  • Loading branch information
jhass committed Aug 6, 2013
2 parents 1639ae2 + 2fc5a78 commit 1ab14ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* Change image to ajax-loader when closing lightbox [#3229](https://github.com/diaspora/diaspora/issues/3229)
* Fix pointer cursor on the file upload button [#4349](https://github.com/diaspora/diaspora/pull/4349)
* Resize preview button [#4355](https://github.com/diaspora/diaspora/pull/4355)
* Fix compability problem with MySQL 5.6 [#4312](https://github.com/diaspora/diaspora/issues/4312)

## Features
* Admin: add option to find users under 13 (COPPA) [#4252](https://github.com/diaspora/diaspora/pull/4252)
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20110924112840_create_o_embed_caches.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def self.up
t.string :url, :limit => 1024, :null => false, :unique => true
t.text :data, :null => false
end
add_index :o_embed_caches, :url
add_index :o_embed_caches, :url, :length => { :url => 255 }
end

def self.down
Expand Down

0 comments on commit 1ab14ef

Please sign in to comment.