Commit graph

10 commits

Author SHA1 Message Date
Benjamin Neff
4be8a0bed9 change TEXT columns back to TEXT
mysql changes the type of TEXT columns to MEDIUMTEXT with "CONVERT TO",
but we don't want this, so change this columns back to TEXT.

see: https://bugs.mysql.com/bug.php?id=31291
2015-04-19 15:45:20 +02:00
Benjamin Neff
f4fd77fa7c use "CONVERT TO" to change the encoding for the table and all character columns
see: https://dev.mysql.com/doc/refman/5.6/en/charset-conversion.html
2015-04-18 17:54:15 +02:00
Jonne Haß
6b217c32f2 Shorten index for tweet_id too in mysql utf8mb4 migration 2015-03-15 16:59:50 +01:00
Jonne Haß
414cfbdae0 Array#to_h is new in Ruby 2.1, we still suppport 2.0 2015-03-15 15:59:06 +01:00
Jonne Haß
b991ffe455 Merge pull request #5624 from dimaursu/emoji
Add collation and config check
2015-02-08 00:04:46 +01:00
Dumitru Ursu
0829e6f394 Add collation and config check 2015-02-06 00:49:07 +02:00
Dumitru Ursu
28fdba5d89 Shorten indexes
Fix merge conflict
2015-01-20 22:41:52 +02:00
Dumitru Ursu
a733a774d1 Refactor & DRY encoding migration
Dynamic row for MySQL

Set larger column index sizes
2015-01-19 02:19:39 +02:00
Dumitru Ursu
dda5f71124 Add warning about encoding change
Add warning about MySQL collation

Fix database index length

This allows new databases to be created with utf8mb4, on MySQL. The maximum
column size is 767 bytes. Each character is 4 bytes long -> 767 / 4 = 191
characters for the column.
2015-01-19 02:19:39 +02:00
Dumitru Ursu
b0ef4509a6 Change the adapter encoding to utf8mb4 2015-01-19 02:18:19 +02:00