csdl / makahiki

An Open Source "Serious Game" Framework for Sustainability
http://makahiki.readthedocs.org/
MIT License
7 stars 5 forks source link

deleting a team cause the profiles associated with this team got deleted #578

Closed yongwen closed 10 years ago

yongwen commented 10 years ago

it is caused by the foreign key and the default delete cascade settings for the table. This has adverse outcome that if the admin users are associated with a team then the admin will not be able to login (can not find the profile) and can not recover from the error.

Deleting a team should be supported so that it only dissociate the team from profiles.

yongwen commented 10 years ago

fixed. auto create the profile with user default value when user login.