Migration problem - ver # 22


#1

Well, I’m taking the plunge.

I updated my typo from trunk for the first time
in months. I updated my gems.

Rails 1.1.2?? All cool between it and Typo?

Anyway, I tried the migration. This is what I got:
(see below).

Any ideas? Yes, I did back up the db. :wink:

Thanks,
Hal

[root@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@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:inmigration_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:ineach’
/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:inmigration_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:inup’
/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:incall’
/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:ineach’
/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:ininvoke’
/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:ininvoke’
/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:ineach’
/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:ineach’
/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:ininvoke’
/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:ininvoke’
/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:ineach’
/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:inload’
/usr/local/bin/rake:18


#2

On Thu, 2006-06-01 at 00:34 -0500, Hal F. 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