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

CRM-19715 (IIDA-96), removed opening_balance and current_period_openi… #9974

Merged
merged 1 commit into from
Mar 29, 2017

Conversation

pradpnayak
Copy link
Contributor

…ng_balance field from civicrm_financial_account table and code


CRM-19715, added DAO changes


@eileenmcnaughton
Copy link
Contributor

So, this code looks fine. How do we convince ourselves we can remove those fields with no impact on anyone? It looks like they were added in 4.7.9 so it isn't such a short time. (about 9 months)

The best idea I have is to only drop them if they are empty & add a System_Check that reports an error to the site if they continue to exist.

@JoeMurray
Copy link
Contributor

Just noting here before putting in issue...The functionality is being moved into an extension. We think on upgrade, if there is relevant data, then the extension should be installed during the upgrade, and the upgrade code should copy data over before the fields are dropped. This requirement will be added, as a UX for changing the fields was added 4.7.9.

@JoeMurray JoeMurray changed the title CRM-19715 (IIDA-96), removed opening_balance and current_period_openi… WIP CRM-19715 (IIDA-96), removed opening_balance and current_period_openi… Mar 14, 2017
…ng_balance field from civicrm_financial_account table and code

----------------------------------------
* CRM-19715:
  https://issues.civicrm.org/jira/browse/CRM-19715

CRM-19715, added DAO changes

----------------------------------------
* CRM-19715: Remove Close Accounting Period code
  https://issues.civicrm.org/jira/browse/CRM-19715

CRM-19715, removed upgrade code to drop fields from civicrm_financial_account table

----------------------------------------
* CRM-19715: Remove Close Accounting Period code
  https://issues.civicrm.org/jira/browse/CRM-19715
@pradpnayak
Copy link
Contributor Author

@eileenmcnaughton i have updated PR. I removed upgrade script to Drop opening_balance and current_period_opening_balance. I will send a separate PR for it as it requires php coding to drop those 2 fields if current_period_opening_balance = 0 and opening_balance = 0

@eileenmcnaughton eileenmcnaughton changed the title WIP CRM-19715 (IIDA-96), removed opening_balance and current_period_openi… CRM-19715 (IIDA-96), removed opening_balance and current_period_openi… Mar 29, 2017
@eileenmcnaughton eileenmcnaughton merged commit d194c5c into civicrm:master Mar 29, 2017
@eileenmcnaughton
Copy link
Contributor

I've merge this - can you do a last grep for relevant strings before closing the JIRA @pradpnayak

@pradpnayak pradpnayak deleted the CRM-19715-2 branch March 29, 2017 22:45
@pradpnayak
Copy link
Contributor Author

pradpnayak commented Mar 29, 2017

@eileenmcnaughton yes sure. Thanks :)

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

Successfully merging this pull request may close these issues.

3 participants