[opensuse-buildservice] database migrate error
HI All I update my OBS from 2.1 to 2.3 following the README.UPDATES guideline in obs-api package, but I have a prolem. When I execute this command --- ---" RAILS_ENV="production" rake db:migrate" in /srv/www/obs/api directory , I got the following error log: <<<<<<<<<<<<<< WARNING: The database is inconsistent, some FOREIGN KEYs (aka CONSTRAINTS) can not be added! please run script/check_database script to fix the data. rake aborted!
>>>>>>>>>>>>>>>>>>>>>
Any body can help me ? Thanks very much! ----- Go OBS -- View this message in context: http://opensuse.14.n6.nabble.com/database-migrate-error-tp4970863.html Sent from the opensuse-buildservice mailing list archive at Nabble.com. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On 7/26/2012 at 04:21 PM, Aaron Yung
wrote: HI All I update my OBS from 2.1 to 2.3 following the README.UPDATES guideline in obs-api package, but I have a prolem.
When I execute this command --- ---" RAILS_ENV="production" rake db:migrate" in /srv/www/obs/api directory , I got the following error log: <<<<<<<<<<<<<<
WARNING: The database is inconsistent, some FOREIGN KEYs (aka CONSTRAINTS) can not be added! please run script/check_database script to fix the data. rake aborted!
>>>>>>>>>>>>>>>>>>>>>>
Any body can help me ? Thanks very much!
Run the script it is asking you to. That check_database will print SQL statements in stdout. You'll have to run those manually in MySQL or any other database you are using for production. HTH, Srinidhi. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
<<<<<<<<<<<<
participants (2)
-
Aaron Yung
-
Srinidhi B