Re: [opensuse-buildservice] After setting up my own obs , error when creating home:project
Am Mittwoch, 7. September 2011, 22:11:56 schrieb 安立久:
this is my database api_production there is no bugowner field , so I need re-setup my database ?
it would be an entry in the table, not a field. -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
2011-09-07 22:22:34,"Adrian Schröter" <adrian@suse.de>:
it would be an entry in the table, not a field.
-- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de>
there is 0 row in the roles table, ############# this is how I set up the api_production database: ###### cd /srv/www/obs/api/db/ mysql -u obs -p api_production<production_structure.sql cd /srv/www/obs/api/ RAILS_ENV="production" rake db:migrate ##################################################### then i act like an end-user ,register , login , create first proj -> home:proj , then illegal role name 'bugowner' >_<~~ --Best regards, An Lijiu -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Mittwoch, 7. September 2011, 22:47:28 schrieb 安立久:
2011-09-07 22:22:34,"Adrian Schröter" <adrian@suse.de>:
it would be an entry in the table, not a field.
-- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de>
there is 0 row in the roles table, ############# this is how I set up the api_production database: ###### cd /srv/www/obs/api/db/
mysql -u obs -p api_production<production_structure.sql
cd /srv/www/obs/api/
RAILS_ENV="production" rake db:migrate
for the initial setup you should use "rake db:setup". Actually migrate should complain about being used on an empty database meanwhile. And the bugowner entry should be inside of the database since our first release already, so a migrate should not change anything here. -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de
It worked like a charm !!!!! aaaaaaha , Thanks a lot !
在 2011-09-07 22:50:50,"Adrian Schröter" <adrian@suse.de> 写道: Am Mittwoch, 7. September 2011, 22:47:28 schrieb 安立久: for the initial setup you should use "rake db:setup". Actually migrate should complain about being used on an empty database meanwhile. And the bugowner entry should be inside of the database since our first release already, so a migrate should not change anything here. -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Adrian Schröter
-
安立久