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, added upgrade script to delete current_period_opening_bala… #10083

Merged
merged 1 commit into from
Mar 30, 2017

Conversation

pradpnayak
Copy link
Contributor

…nce and opening_balance if they are <> 0


…nce and opening_balance if they are <> 0

----------------------------------------
* CRM-19715: Remove Close Accounting Period code
  https://issues.civicrm.org/jira/browse/CRM-19715
* @param string $rev
*/
public function upgrade_4_7_19($rev) {
$query = "SELECT id FROM civicrm_financial_account WHERE opening_balance <> 0 OR current_period_opening_balance <> 0";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default this Columns were set to 0. Therefore i checked if this columns have values other than 0 then don't drop column.

@pradpnayak
Copy link
Contributor Author

@eileenmcnaughton @JoeMurray Can you please review this?

@eileenmcnaughton eileenmcnaughton merged commit 64ba7c7 into civicrm:master Mar 30, 2017
@eileenmcnaughton
Copy link
Contributor

looks right to me

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

Successfully merging this pull request may close these issues.

2 participants