Hello all,
I was thinking about a new feature for migrations. I think it would be
nice to have a "creation checkpoint" that could be used when creating a new
database rather then running all of the migrations from the start. This
checkpoint wouldn't have to be present on every migration but when
migrating from version 0 (the empty database) it would find the latest
migration that has a creation checkpoint and start by applying that, then
upgrading from there.
# Concept Code
Sequel.migration do
up do
# Regular up from previous version here.
end
down do
# Regular down to previous version here.
end
create do
# Move to this version directly from an empty db.
end
end
This is useful for projects that have had many migrations as they evolve
but for new instances and developers starting with a clean slate it makes
setting up the database faster. The idea would be that when upgrading from
0 takes "too long" you just add a `create` migration so that creating the
database is quick again.
I was wondering what you guys think.
Cheers,
Kevin
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.