Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add short-hand methods for text and blob types in MySQL | Ryuta Kamizono | 2016-01-05 | 1 | -10/+10 |
| | | | | | | | | | | | | | | | | | In Pg and Sqlite3, `:text` and `:binary` have variable unlimited length. But in MySQL, these have limited length for each types (ref #21591, #21619). This change adds short-hand methods for each text and blob types. Example: create_table :foos do |t| t.tinyblob :tiny_blob t.mediumblob :medium_blob t.longblob :long_blob t.tinytext :tiny_text t.mediumtext :medium_text t.longtext :long_text end | ||||
* | Fix `unsigned?` and `blob_or_text_column?` for Enum columns in MySQL | Ryuta Kamizono | 2016-01-04 | 1 | -1/+1 |
| | |||||
* | Merge pull request #21932 from kamipo/add_stored_procedure_test_in_mysql2 | Sean Griffin | 2015-10-20 | 1 | -0/+11 |
|\ | | | | | Add stored procedure test in mysql2 | ||||
| * | Add stored procedure test in mysql2 | Ryuta Kamizono | 2015-10-15 | 1 | -0/+11 |
| | | |||||
* | | Fix to correctly schema dump the `tinyblob` | Ryuta Kamizono | 2015-10-15 | 1 | -1/+1 |
|/ | | | | | | Currently `tinyblob` is dumped to `t.binary "tiny_blob", limit: 255`. But `t.binary ... limit: 255` is generating SQL to `varchar(255)`. It is incorrect. This commit fixes this problem. | ||||
* | Add `:charset` and `:collation` options support for MySQL string and text ↵ | Ryuta Kamizono | 2015-03-06 | 1 | -9/+5 |
| | | | | | | | | | | | columns Example: create_table :foos do |t| t.string :string_utf8_bin, charset: 'utf8', collation: 'utf8_bin' t.text :text_ascii, charset: 'ascii' end | ||||
* | tests, favor `drop_table` and `:if_exists` over raw SQL. | Yves Senn | 2015-03-02 | 1 | -6/+2 |
| | | | | | We've replaced most querues using DROP TABLE in our tests already. This patch replaces the last couple calls. | ||||
* | fix detect column type of enum | masarakki | 2013-04-01 | 1 | -1/+1 |
| | | | | enum includes text or blob or ... hooked by wrong regex | ||||
* | Add support for FULLTEXT and SPATIAL indexes using the :type flag for MySQL. | Ken Mazaika | 2013-03-27 | 1 | -0/+10 |
| | |||||
* | Use the MySQL varbinary type when appropriate in migrations. | Victor Costan | 2012-10-27 | 1 | -9/+13 |
| | |||||
* | fix: limit of enum columns of mysql | Yamada Masaki | 2012-06-28 | 1 | -0/+9 |
| | |||||
* | Fix type_to_sql with text and limit on mysql/mysql2. Fix GH #3931. | kennyj | 2012-02-26 | 1 | -2/+2 |
| | |||||
* | Only use LOWER for mysql case insensitive uniqueness check when column has a ↵ | Joseph Palermo | 2011-10-09 | 1 | -1/+12 |
| | | | | case sensitive collation. | ||||
* | update tests for mysql2 support | Brian Lopez | 2010-08-02 | 1 | -0/+24 |