Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tenant and fallback_sip_account on existing phones #31

Closed
spag opened this issue Dec 25, 2012 · 0 comments
Closed

Update tenant and fallback_sip_account on existing phones #31

spag opened this issue Dec 25, 2012 · 0 comments
Assignees

Comments

@spag
Copy link
Contributor

spag commented Dec 25, 2012

Since commit 9101b20 the Phone model uses "tenant" and "fallback_sip_account" to store fallback values for "phoneable" and "sip_account".

If a user logs out from a phone, "phoneable_id" is set to the value of "tenant" and "phoneable_type" to the string "Tenant".
"fallback_sip_account" is used in various provisioning controllers as a fallback for the "phone_sip_accounts" table.

Newly created phone entries should populate the fields automatically but after an update from a previous GS5 version those fields will be NULL.

The goal is to create a migration (or something else) to populate "tenant" and "fallback_sip_account" with the right values affecting existing phones only.

@ghost ghost assigned wintermeyer Dec 25, 2012
@spag spag closed this as completed Dec 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants