metno / icewatch

IceWatch Rails Application
0 stars 0 forks source link

Upgrade various packages #1

Open alistaireverett opened 5 years ago

alistaireverett commented 5 years ago

Upgrading to Postgresql-11 leads to the following error when running tests:

ActiveRecord::StatementInvalid: PG::UndefinedColumn: ERROR: column "increment_by" does not exist LINE 1: ...ions_idseq"', (SELECT COALESCE(MAX("id")+(SELECT increment... ^ : SELECT setval('"public"."ice_observations_id_seq"', (SELECT COALESCE(MAX("id")+(SELECT increment_by FROM "public"."ice_observations_id_seq"), (SELECT min_value FROM "public"."ice_observations_id_seq")) FROM "ice_observations"), false)

Solutions:

alistaireverett commented 5 years ago

Temporarily running successfully with psql-9.6 while implementing alternative authentication.

alistaireverett commented 4 years ago

Progress towards upgrading to Rails 5.2.0 in upgrade-ruby-rails branch. However will also require updating bootstrap gem from 3 to 4 which could take some work to go through and update the views. See here for changes from boostrap 3 to 4: http://upgrade-bootstrap.bootply.com/