[Bug 463172] New: In frontend - rake db:migrate fails with " Multiple migrations have the name AddArchs"
https://bugzilla.novell.com/show_bug.cgi?id=463172 Summary: In frontend - rake db:migrate fails with "Multiple migrations have the name AddArchs" Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: BuildService AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: srinidhi@novell.com QAContact: adrian@novell.com Found By: --- Fresh checkout from SVN trunk on a freshly installed on 64 bit openSUSE 11.1. Installed mysql, ruby-mysql and ran the following commands: $ rake db:create (in /home/srinidhi/repos/obs/buildservice/src/frontend) Using global environment /home/srinidhi/repos/obs/buildservice/src/frontend/config/environments/development_base.rb $ rake db:migrate (in /home/srinidhi/repos/obs/buildservice/src/frontend) Using global environment /home/srinidhi/repos/obs/buildservice/src/frontend/config/environments/development_base.rb rake aborted! Multiple migrations have the name AddArchs (See full trace by running task with --trace) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=463172 User srinidhi@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=463172#c1 --- Comment #1 from Srinidhi B S <srinidhi@novell.com> 2009-01-01 01:15:22 MST --- When grep'ing for AddArchs inside db/ directory, I found that there were 3 files having this class: db/migrate/013_add_archs.rb db/migrate/043_add_archs.rb db/migrate/045_add_archs.rb Made the changes to the above files and db:migrate works now. Attached is the patch of the changes. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=463172 User srinidhi@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=463172#c2 --- Comment #2 from Srinidhi B S <srinidhi@novell.com> 2009-01-01 01:23:10 MST --- Created an attachment (id=262941) --> (https://bugzilla.novell.com/attachment.cgi?id=262941) Patch to fix db migration -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=463172 User martin.mohring@5etech.eu added comment https://bugzilla.novell.com/show_bug.cgi?id=463172#c3 Martin Mohring <martin.mohring@5etech.eu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |abauer@novell.com --- Comment #3 from Martin Mohring <martin.mohring@5etech.eu> 2009-01-03 15:40:37 MST --- This fix is does not help if the database is already at a higher level than 13. A workaround is to run the migration in two steps, first to level 43 and then the rest. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=463172 Martin Mohring <martin.mohring@5etech.eu> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |abauer@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=463172 User adrian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=463172#c4 Adrian Schröter <adrian@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Adrian Schröter <adrian@novell.com> 2009-01-07 02:46:31 MST --- I have renamed them to unique names now. Not tested, but I think this fixes the issue. Please test :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=463172 User srinidhi@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=463172#c5 Srinidhi B S <srinidhi@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |srinidhi@novell.com Status|RESOLVED |VERIFIED --- Comment #5 from Srinidhi B S <srinidhi@novell.com> 2009-01-09 11:01:16 MST --- (In reply to comment #4 from Adrian Schröter)
I have renamed them to unique names now. Not tested, but I think this fixes the issue. Please test :)
Works like a charm! Thanks a lot Adrian! :) On another fresh install, ran: rake db:create rake db:migrate Both ran successfully without any problems. Closing this bug as Verified. Let me know if I need to move it to "CLOSED" state. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=463172 User martin.mohring@5etech.eu added comment https://bugzilla.novell.com/show_bug.cgi?id=463172#c6 --- Comment #6 from Martin Mohring <martin.mohring@5etech.eu> 2009-01-09 11:11:45 MST --- I also put appropriately updated developer packages into openSUSE:Tools:Devel -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=463172 User jnelson-suse@jamponi.net added comment https://bugzilla.novell.com/show_bug.cgi?id=463172#c7 Jon Nelson <jnelson-suse@jamponi.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jnelson-suse@jamponi.net --- Comment #7 from Jon Nelson <jnelson-suse@jamponi.net> 2009-03-26 09:15:19 MST --- Any idea when this will be corrected in 1.5? 1.5.1 does not have the correction. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com