I've added a new migration file (039_subscription_categories.rb) to my
project:
Sequel.migration do
change do
alter_table :gift_subscriptions do
add_column :category_one, String
add_column :category_two, String
end
end
end
(1) When I execute Sequel::Migrator.run(DB, migration_path) on a new, empty
database everything works fine.
(2) When I execute Sequel::Migrator.run(DB, migration_path) on an existing,
populated database at version 38, I don't receive any errors back, but the
new columns *aren't added* to gift_subscriptions.
(3) When I execute Sequel::Migrator.run(DB, migration_path, target: 39,
current: 38) on the same populated database, the migration works correctly
and the new columns are added to gift_subscriptions.
Obviously I've been able to work around the problem with (3), but I'm
curious what's up.
--
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 https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.