Hi,

Hoping you can help me figure something out. I'm really new to Sequel,
and I wanted to try to build a small Merb application. I kind of got
stuck when I tried using migrations. I first tried using the rake task
provided, but that failed, so I fell back onto Merb interactive. I
tried executing the following:

Sequel::Migrator.apply(Sequel::Model.db, 'schema/migrations')

I then get some output, the first part being the creation of the
table. Then it rolls back and gives me this error:

ArgumentError: wrong number of arguments (1 for 0)
        from /usr/lib/ruby/gems/1.8/gems/sequel-2.8.0/lib/sequel_core/
adapters/shared/postgres.rb:226:in `like'
        from /usr/lib/ruby/gems/1.8/gems/sequel-2.8.0/lib/sequel_core/
adapters/shared/postgres.rb:226:in `tables'
        from /usr/lib/ruby/gems/1.8/gems/sequel-2.8.0/lib/sequel_core/
adapters/shared/postgres.rb:215:in `table_exists?'
        from /usr/lib/ruby/gems/1.8/gems/sequel-2.8.0/lib/sequel_core/
migration.rb:202:in `schema_info_dataset'
        from /usr/lib/ruby/gems/1.8/gems/sequel-2.8.0/lib/sequel_core/
migration.rb:208:in `set_current_migration_version'
        from /usr/lib/ruby/gems/1.8/gems/sequel-2.8.0/lib/sequel_core/
migration.rb:149:in `apply'
        from /usr/lib/ruby/gems/1.8/gems/sequel-2.8.0/lib/sequel_core/
adapters/shared/postgres.rb:243:in `transaction'
        from /usr/lib/ruby/gems/1.8/gems/sequel-2.8.0/lib/sequel_core/
connection_pool.rb:109:in `hold'
        from /usr/lib/ruby/gems/1.8/gems/sequel-2.8.0/lib/sequel_core/
database.rb:361:in `synchronize'
        from /usr/lib/ruby/gems/1.8/gems/sequel-2.8.0/lib/sequel_core/
adapters/shared/postgres.rb:232:in `transaction'
        from /usr/lib/ruby/gems/1.8/gems/sequel-2.8.0/lib/sequel_core/
migration.rb:147:in `apply'
        from (irb):5
        from :0

I read somewhere that 2.8.0 doesn't use the output from #tables
anymore, but it seems like the PostgreSQL adapter is still using it.

I guess there's 2 questions then:
1. Is it supposed to be calling #tables?
2. How do I fix this to get migrations working?

Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to