我跑耙分贝:迁移我的轨道失败并出现以下错误:耙分贝:迁移失败,Mysql2 ::错误:行大小太大
== AddColumnsToSavedSearch: migrating ========================================
-- add_column(:saved_searches, :search_param1, :string, {:limit=>1000})
-> 0.0574s
-- add_column(:saved_searches, :search_param2, :string, {:limit=>1000})
rake aborted!
An error has occurred, all later migrations canceled:
Mysql2::Error: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. You have to change some columns to TEXT or BLOBs: ALTER TABLE `saved_searches` ADD `search_param2` varchar(1000)
这种迁移运行在我的其他罚款系统具有相同的配置(相同的OS和DB)。
我的MySQL数据库版本是服务器版本:5.5.24-0ubuntu0.12.04.1(Ubuntu)。
任何帮助表示赞赏。
如果您需要任何信息,请让我知道。
感谢
运行迁移之前,该表的行大小(以字节为单位)是多少? – Zabba