noosfero | Migrating database from old version fails (#374)

Aaron gitlab at mg.gitlab.com
Mon Nov 5 03:22:22 BRST 2018


New Issue was created.

Issue 374: https://gitlab.com/noosfero/noosfero/issues/374
Author:    Aaron
Assignee:  

Migrating the colivre database starting from `20171106144524` to the newest noosfero fails in several migration steps:

`20180126121926_create_article_access_friendships.rb`

`20180126121927_create_profile_access_friendships.rb`

`20180126122144_create_article_access_memberships.rb`

`20180126122145_create_profile_access_memberships.rb`

`/noosfero/db/migrate/20180716142038_change_phone_fields_to_valid_format.rb`

```
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
undefined method `nil' for #<Person:0x000000032f2530>/noosfero/app/models/profile.rb:1330:in `method_missing'
/noosfero/db/migrate/20180716142038_change_phone_fields_to_valid_format.rb:4:in `block in change'
/noosfero/db/migrate/20180716142038_change_phone_fields_to_valid_format.rb:3:in `change'
NoMethodError: undefined method `nil' for #<Person:0x000000032f2530>
/noosfero/app/models/profile.rb:1330:in `method_missing'
/noosfero/db/migrate/20180716142038_change_phone_fields_to_valid_format.rb:4:in `block in change'
/noosfero/db/migrate/20180716142038_change_phone_fields_to_valid_format.rb:3:in `change'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
```
`20180829134258_remove_empty_custom_fields_from_articles.rb` 

`20181024151736_remove_person_template_from_article_author.rb`

I did it manually and uncommented the migrationsteps. If wished, I can reproduce it and copy the exact error messages.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/issues/374
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20181105/7b2dbf7c/attachment.html>


More information about the Noosfero-dev mailing list