[opensuse-buildservice] rake db:migrate failures
Hi all, The OBS 2.3.9x unstable packages seem to come with some issues in the rake db:migration code. There is a collection of 6 files that I need to 'skip', as they fail with different errors. the files are (all rather old): 20111116100002_alter_issue_trackers.rb 20111206151500_kernel_issue_tracker_regexp.rb 20120120104301_disable_switch_per_issue_tracker.rb 20120120114301_fix_bnc_url.rb 20120216114303_rename_issue_table_columns.rb 20120319104301_disable_all_issue_trackers.rb And the respective errors are: 20111116100002_alter_issue_trackers.rb ###################################### -- change_table(:issue_trackers) rake aborted! An error has occurred, all later migrations canceled: Mysql2::Error: Duplicate column name 'kind': ALTER TABLE `issue_trackers` ADD `kind` ENUM('bugzilla', 'cve', 'fate', 'trac', 'launchpad', 'sourceforge') AFTER `name` Tasks: TOP => db:migrate (See full trace by running task with --trace) 20111206151500_kernel_issue_tracker_regexp.rb ############################################# == KernelIssueTrackerRegexp: migrating ======================================= rake aborted! An error has occurred, all later migrations canceled: undefined method `regex=' for nil:NilClass Tasks: TOP => db:migrate 20120120104301_disable_switch_per_issue_tracker.rb ################################################## rake aborted! An error has occurred, all later migrations canceled: Mysql2::Error: Duplicate column name 'enable_fetch': ALTER TABLE `issue_trackers` ADD `enable_fetch` bool DEFAULT 0 Tasks: TOP => db:migrate 20120120114301_fix_bnc_url.rb ############################# rake aborted! An error has occurred, all later migrations canceled: undefined method `url=' for nil:NilClass Tasks: TOP => db:migrate 20120216114303_rename_issue_table_columns.rb ############################################ rake aborted! An error has occurred, all later migrations canceled: No such column: issues.description Tasks: TOP => db:migrate 20120319104301_disable_all_issue_trackers.rb ############################################ rake aborted! An error has occurred, all later migrations canceled: undefined method `enable_fetch=' for nil:NilClass Tasks: TOP => db:migrate ====> Some of them are probably follow up errors, but none of them should happen.. Best regards, Dominique -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Am Dienstag, 15. Januar 2013, 14:23:33 schrieb Dominique Leuenberger a.k.a. Dimstar:
Hi all,
The OBS 2.3.9x unstable packages seem to come with some issues in the rake db:migration code.
I can not reproduce these errors when updating from a OBS 2.3.7 appliance to current :Unstable packages. However, I fixed some migration problems in this situation around two weeks ago. Are you sure that you use current pakcages? ...
Mysql2::Error: Duplicate column name 'kind': ALTER TABLE `issue_trackers` ADD `kind` ENUM('bugzilla', 'cve', 'fate', 'trac', 'launchpad', 'sourceforge') AFTER `name`
This error looks like this migration did run before, but did not registered as succeeded. -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Quoting Adrian Schröter <adrian@suse.de>:
The OBS 2.3.9x unstable packages seem to come with some issues in the rake db:migration code.
I can not reproduce these errors when updating from a OBS 2.3.7 appliance to current :Unstable packages. However, I fixed some migration problems in this situation around two weeks ago. Are you sure that you use current pakcages?
this OBS was installed as as 2.2 on openSUSE 12.1 IIRC... then openSUSE updated to 12.2 and 'forced' to OBS 2.3 for 'admin error for not checking if everything is compatible'... The packages are up-to-date: obs-api-2.3.91_696_g54c4084-1.1.x86_64
Mysql2::Error: Duplicate column name 'kind': ALTER TABLE `issue_trackers` ADD `kind` ENUM('bugzilla', 'cve', 'fate', 'trac', 'launchpad', 'sourceforge') AFTER `name`
This error looks like this migration did run before, but did not registered as succeeded.
Would be impossible... Dominique -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (2)
-
Adrian Schröter
-
Dominique Leuenberger a.k.a. Dimstar