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

1.5 Fix #2800 can't delete unused account after books closed #2801

Merged
merged 5 commits into from May 14, 2017

Conversation

nick-prater
Copy link
Contributor

Ensures that associated zero-value records in account_checkpoint are deleted before the account, to avoid foreign-key errors.

Closing books creates zero entries in the account_checkpoint table for accounts
which have never been used. We allow deletion of such accounts, so the associated
zero-value account_checkpoint records must be deleted before the account to avoid
foreign-key errors.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) to 25.211% when pulling 1ea08ed on nick-prater:1.5-fix-2800 into 1c1ed47 on ledgersmb:1.5.

@@ -44,4 +44,5 @@
1.5/issue-2380-modify-tax_extended_entry_id-constraint.sql
1.5/issue-2278-modify-acc_trans-index.sql
1.5/template_menu3.sql
1.5/issue-2800-cant-delete-unused-account-after-books-closed.sql
Copy link
Member

Choose a reason for hiding this comment

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

No need to create an sql/changes/ item for this one: modules are always reloaded.
sql/changes/ only comes in when changing the schema definition (adding/removing indexes, adding/changing/removing columns and tables, etc).

…ount"

This reverts commit 436217b.
In response to feedback - no need to create sql/changes entries for module
update as modules are always reloaded.
Closing books creates zero entries in the account_checkpoint table for accounts
which have never been used. We allow deletion of such accounts, so the associated
zero-value account_checkpoint records must be deleted before the account to avoid
foreign-key errors.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 25.216% when pulling 1372cdb on nick-prater:1.5-fix-2800 into 1c1ed47 on ledgersmb:1.5.

@ehuelsmann ehuelsmann merged commit 91d6829 into ledgersmb:1.5 May 14, 2017
@nick-prater nick-prater deleted the 1.5-fix-2800 branch May 30, 2017 08:24
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.

None yet

3 participants