Well, good approach, but something i have mistook in the example
above, so sorry for my question.

My app consist with many modules, every module will create many
migrations,  we need to packup the module with itself migrations, it
dose mean the migrations will be independent without relation to other
migrations forwards.

For example,  we creates a module called BLOG that creates the
migration version of 004 and 005, the two migration contains two
tables(user table, post table) and alters column of the table(article
table, it creates by migration version of 002, other module) .

So, we need to checkout the schema(or migration) of database for
packing up the module BLOG,

Now if i do it as you said, it will checkout other tables that we not
turly need in the migration schema.

How can i do ?

On Dec 12, 8:41 am, Jeremy Evans <[email protected]> wrote:
> On Dec 12, 12:27 am, coolesting <[email protected]> wrote:
>
>
>
> > I sure this problem of error is solved, but as my topic, actually, i
> > want export the schema from many tables that is created by many
> > migrations, not from all of tables in database. In others words, it
> > just integrates many migrations to a migration.
>
> > For example,  this is 10 migrations.
> > 001_migration.rb
> > 002_migration.rb
> > 003_migration.rb
> > 004_migration.rb
> > 005_migration.rb
> > ..
> > ...
> > 010_migration.rb
>
> > Generally, we will run the migrations to the database at first.
> > Now, for certain reason, i need a schema that is created by many
> > migration files, such as the file 004_migration.rb and
> > 005_migration.rb
>
> Well, If you want to export the schema as of version 4, I'd just run
> migrations up to version 4 (bin/sequel -M 4), then dump the schema
> migration afterward.
>
> 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.

Reply via email to