On Jan 18, 1:52 am, coolesting <[email protected]> wrote:
> What does it mean the "a single migration table" and "two separate
> migration tables", what is the difference to the  normal database
> table, could you get me an example for explaining ?
>
> 2012/1/16, Jeremy Evans <[email protected]>:
>
>
>
>
>
>
>
> > On Jan 16, 6:31 pm, coolesting <[email protected]> wrote:
> >> $ sequel -m db/b/migrations 'sqlite://db/data.db'
>
> >> Error: Sequel::Migrator::Error: Applied migration files not in file
> >> system: 20111227001707_create_user.rb/home/app/ruby/lib/ruby/gems/
> >> 1.9.1/gems/sequel-3.27.0/lib/sequel/extensions/migration.rb:582:in
> >> `get_applied_migrations'
>
> >> Why do i get this error, my migration folder structure as the
> >> following,
>
> >> db/a/migrations/XXXXX_create_user.rb ( the
> >> 20111227001707_create_user.rb file above)
> >> ...
> >> ... more migration files
>
> >> db/b/migrations/XXXXX_create_post.rb
> >> ...
> >> ... more migration files
>
> > Sequel's timestamp migrator doesn't support using two separate
> > migration directories with a single migration table.  Either use two
> > separate migration tables (you'll have to use the API for that), or
> > use a single migration directory.
>
> > Jeremy
>
> > --
> > 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.

Sequel keeps track of which migrations have been applied in a table.
By default :schema_info for integer migrations and :schema_migrations
for timestamp migrations. If you want to use different migration
directories you have to specify different table names that track the
migrations for each directory. Take a look at the API documentation
for Sequel::Migrator.run 
http://sequel.rubyforge.org/rdoc-plugins/classes/Sequel/Migrator.html

-- 
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