[yast-devel] Larger change on webclient side, run "rake db:migrate"
Hi, if you 'git pull' on webservice, you'll most probably have to run a "rake db:migrate" afterwards. Sorry for the inconvenience. Klaus --- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Klaus Kaempf schrieb:
Hi,
if you 'git pull' on webservice, you'll most probably have to run a "rake db:migrate" afterwards.
Sorry for the inconvenience.
Klaus --- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
Hm, I am getting the db:migrate frame although I have run "rake db:reset" Processing HostsController#index (for 127.0.0.1 at 2009-07-14 17:58:35) [GET] Parameters: {"action"=>"index", "controller"=>"hosts"} Host Load (0.0ms) SQLite3::SQLException: no such table: hosts: SELECT * FROM "hosts" Redirected to http://0.0.0.0:3000/migrate db:reset takes care about schema.rb which has been removed. Without removing schema.rb db:migrate does not take care about the migrations files. Is here a "chicken <->egg" problem ? :-) Greetings Stefan -- ******************************************************************************* Stefan Schubert SUSE LINUX GmbH - Maxfeldstrasse 5 - D-90409 Nuernberg, Germany e-mail: schubi@suse.de ------------------------------------------------------------------------------- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Stefan Schubert napsal(a):
Klaus Kaempf schrieb:
Hi,
if you 'git pull' on webservice, you'll most probably have to run a "rake db:migrate" afterwards.
Sorry for the inconvenience.
Klaus --- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
Hm, I am getting the db:migrate frame although I have run "rake db:reset"
Processing HostsController#index (for 127.0.0.1 at 2009-07-14 17:58:35) [GET] Parameters: {"action"=>"index", "controller"=>"hosts"} Host Load (0.0ms) SQLite3::SQLException: no such table: hosts: SELECT * FROM "hosts" Redirected to http://0.0.0.0:3000/migrate
db:reset takes care about schema.rb which has been removed. Without removing schema.rb db:migrate does not take care about the migrations files.
Is here a "chicken <->egg" problem ? :-)
Greetings Stefan
I think that removing schema.rb is not good step and cornelius also said it on Prague rails workshop. It intention is for new developers, they don't need run all migration scripts, just use db:load:schema (not sure how exactly rake task looks) that set db to latest version. My solution for problems with db is drop db (or manualy remove) then create it via db:create and then apply all migrations. Then it works (for future update released product we should not make so complex transformation that rake db:migrate have problems). Josef -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
* josef reidinger <jreidinger@suse.cz> [Jul 14. 2009 21:45]:
(for future update released product we should not make so complex transformation that rake db:migrate have problems).
For future update, I have to do clean migrations. I took the short path yesterday and, instead of creating an additional migration, I just changed the existing one. I thought this would be OK for the development cycle (but was proven wrong :-( ) Sorry again for the inconvenience. Klaus --- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
* Stefan Schubert <schubi@suse.de> [Jul 14. 2009 18:07]:
db:reset takes care about schema.rb which has been removed. Without removing schema.rb db:migrate does not take care about the migrations files.
Is here a "chicken <->egg" problem ? :-)
Just rm db/development.sqlite3 Klaus --- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (3)
-
josef reidinger
-
Klaus Kaempf
-
Stefan Schubert