redmine_git_hosting icon indicating copy to clipboard operation
redmine_git_hosting copied to clipboard

migrate_plugins error ( BLOB/TEXT column 'command' used in key specification without a key length)

Open techzhou opened this issue 12 years ago • 2 comments

==  CreateGitCaches: migrating ================================================
-- create_table(:git_caches)
   -> 0.0033s
-- add_index(:git_caches, :command)
rake aborted!
An error has occurred, all later migrations canceled:

Mysql2::Error: BLOB/TEXT column 'command' used in key specification without a key length: CREATE  INDEX `index_git_caches_on_command` ON `git_caches` (`command`)

branch:2.0-migration redmine:2.0.3

techzhou avatar Sep 09 '12 14:09 techzhou

I also had this error during installation of the 2.0-migration branch over redmine 2.0.3.

plsamuel avatar Oct 15 '12 17:10 plsamuel

You can comment out the line "add_index :git_caches, :command" in redmine_git_hosting/db/migrate/20091119162428_create_git_caches.rb and create the index in mysql yourself afterwards.

oliwel avatar Jan 30 '13 19:01 oliwel