Skip to content
This repository has been archived by the owner on Mar 2, 2019. It is now read-only.

Change UserProfile relations to be User relations #58

Open
micolous opened this issue Jan 5, 2014 · 1 comment
Open

Change UserProfile relations to be User relations #58

micolous opened this issue Jan 5, 2014 · 1 comment

Comments

@micolous
Copy link
Owner

micolous commented Jan 5, 2014

For historical/n00b reasons, all of the relations in Tollgate are based on the t.f.m.UserProfile object, rather than the d.c.a.m.User object.

These should be migrated to be relations of the User object instead. This will help reduce the complexity of some queries. A migration will need to be created in order to switch over to using User objects.

@micolous
Copy link
Owner Author

micolous commented Feb 2, 2014

I've started refactoring this in the branch issue-58. Most of the calls seem to be caught, but needs some thorough testing to be user. The templates are probably incomplete at this stage.

It includes a 4 step database migration:

  • 0006: Adds User relations
  • 0007: Migrates UserProfile relations to User (non-reversable)
  • 0008: Deletes UserProfile fields (non-reversable)
  • 0009: Renames conflicting field names from *_u to *.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant