On 21/10/16 00:57, 'Konstantin Orekhov' via Foreman users wrote: > I'd suggest editing > > /usr/share/foreman/db/migrate/20140304184854_add_provision_method_to_hosts.rb > > and commenting out the "remove_column" line with a #, then run: > > foreman-rake db:migrate:down VERSION=20140304184854 > foreman-rake db:migrate:up VERSION=20140304184854 > > > Yep, this certainly fixed my problem - thank you very much, Dominic! > > While we are on this topic - is there a reason why all of those files > under /usr/share/foreman/db/migrate cannot be used for DB migration > steps to allow Foreman admins to "jump" the major releases?
No, but they're largely untested and are quite prone to bugs in big steps as they usually are only run in small steps. We used to run tests on major version migrations, but it was removed. -- Dominic Cleal [email protected] -- You received this message because you are subscribed to the Google Groups "Foreman users" 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/foreman-users. For more options, visit https://groups.google.com/d/optout.
