Ugh.  The problem is that the schemas from before 2.5 weren't all the same--some databases had fields that others didn't.  One of those is the 'title' field in comments.  The original migrations were very careful not to depend on any of the questionable fields; it looks like the bare migration patch missed one.

I'm away from my SVN tree at the moment, I'll fix this later today if no one else gets to it first.


Scott

On 3/21/06, phil < [EMAIL PROTECTED]> wrote:
I'm trying to migrate a user's database from 2.6.0 to svn trunk, but rake migrate (with full trace) gives the following error:

[EMAIL PROTECTED]:~/websites/typo-svn]$ rake --trace migrate
(in /home/phil/websites/typo-svn)
** Invoke migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute migrate
Merging Comments into Contents table
rake aborted!
undefined method `title' for #<Bare21Comment:0x8e49724>
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1501:in `method_missing'
./db/migrate//21_superclass_comments.rb:30:in `up'
./db/migrate//21_superclass_comments.rb:26:in `up'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in `transaction'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/transactions.rb:91:in `transaction'
./db/migrate//21_superclass_comments.rb:16:in `up'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2 /lib/active_record/migration.rb:228:in `migrate'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/migration.rb:223:in `migrate'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/migration.rb:190:in `up'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/migration.rb:181:in `migrate'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/tasks/databases.rake:3
/usr/local/lib/ruby/gems/1.8/gems/rake- 0.6.2/lib/rake.rb:202:in `execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:202:in `execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:180:in `invoke'
/usr/local/lib/ruby/gems/1.8/gems/rake- 0.6.2/lib/rake.rb:1454:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1454:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/bin/rake:7
/usr/local/bin/rake:18
[EMAIL PROTECTED]:~/websites/typo-svn]$

I have a current Typo-svn running fine (http://fak3r.com) but that one I've migrated as I've went along, so I never had to do a big jump like this one.  What should I look at first here?

Thanks

P
--
http://fak3r.com - you dont have to kick it

_______________________________________________
Typo-list mailing list
Typo-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/typo-list

_______________________________________________
Typo-list mailing list
Typo-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/typo-list

Reply via email to