[typo] Migration problem - ver # 22

Scott Bronson bronson at rinspin.com
Thu Jun 1 08:46:25 EDT 2006


On Thu, 2006-06-01 at 00:34 -0500, Hal Fulton wrote:
> Anyway, I tried the migration. This is what I got:
> (see below).
> Any ideas?

What's in your db/migrate directory?  Are there any files other than the
following?  Particularly one whose name begins with 22 or 022?

    rev 1055:
001_initial_schema.rb
002_add_user_email.rb
003_add_article_user_id.rb
004_add_sidebars.rb
005_add_cache_table.rb
006_add_pages.rb
007_add_permalink.rb
008_add_page_title.rb
009_add_article_guid.rb
010_add_tags.rb
011_add_article_id.rb
012_enlarge_settings.rb
013_add_textfilters.rb
014_move_text_filter_to_text_filter_id.rb
015_convert_mysql_to_innodb.rb
016_fix_is_primary_postgres.rb
017_add_comment_user_id.rb
018_add_guids.rb
019_add_whiteboards_to_content.rb
020_superclass_articles.rb
021_superclass_comments.rb
022_superclass_trackbacks.rb
023_superclass_pages.rb
024_cleanup_contents.rb
025_add_itunes_metadata.rb
026_add_redirect_table.rb
027_set_comment_published_flag.rb
028_rename_redirect_to.rb
029_add_user_notification.rb
030_index_sessions.rb
031_add_notifications_table.rb
032_add_jabber_notification.rb
033_add_count_caching.rb
034_boolify_published.rb
035_boolify_content_allow_foo.rb
036_add_tag_display_name.rb
037_enlarge_ip_field.rb
038_add_blog_object.rb
039_serialize_blog_attributes.rb
040_attach_content_to_blog.rb
041_fixup_default_sidebars.rb
042_remove_sidebar_staged_config.rb
043_create_triggers.rb
044_add_published_at_to_content.rb
045_fix_contents_published_default.rb
046_fixup_forthcoming_publications.rb






> [root at www typo]# rake migrate 2>&1 | tee mig.out
> (in /root/typo)
> rake aborted!
> Multiple migrations have the version number 22
> 
> (See full trace by running task with --trace)
> [root at www typo]# rake migrate --trace 2>&1 | tee mig.out
> (in /root/typo)
> ** Invoke migrate (first_time)
> ** Invoke db:migrate (first_time)
> ** Invoke environment (first_time)
> ** Execute environment
> ** Execute db:migrate
> rake aborted!
> Multiple migrations have the version number 22
> /root/typo/config/../vendor/rails/activerecord/lib/active_record/migration.rb:351:in 
> `assert_unique_migration_version'
> /root/typo/config/../vendor/rails/activerecord/lib/active_record/migration.rb:342:in 
> `migration_classes'
> /root/typo/config/../vendor/rails/activerecord/lib/active_record/migration.rb:339:in 
> `inject'
> /root/typo/config/../vendor/rails/activerecord/lib/active_record/migration.rb:339:in 
> `each'
> /root/typo/config/../vendor/rails/activerecord/lib/active_record/migration.rb:339:in 
> `inject'
> /root/typo/config/../vendor/rails/activerecord/lib/active_record/migration.rb:339:in 
> `migration_classes'
> /root/typo/config/../vendor/rails/activerecord/lib/active_record/migration.rb:327:in 
> `migrate'
> /root/typo/config/../vendor/rails/activerecord/lib/active_record/migration.rb:294:in `up'
> /root/typo/config/../vendor/rails/activerecord/lib/active_record/migration.rb:285:in 
> `migrate'
> /root/typo/config/../vendor/rails/railties/lib/tasks/databases.rake:4
> /root/typo/config/../vendor/rails/railties/lib/tasks/databases.rake:3:in `call'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `each'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in `invoke'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `synchronize'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:in `invoke_prerequisites'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:in `each'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `send'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:in `invoke_prerequisites'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in `invoke'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `synchronize'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `each'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7
> /usr/local/bin/rake:18:in `load'
> /usr/local/bin/rake:18
> 
> _______________________________________________
> Typo-list mailing list
> Typo-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/typo-list



More information about the Typo-list mailing list