Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021767Openbravo ERP09. Financial managementpublic2012-09-26 16:562012-09-27 16:20
dmiguelez 
dmiguelez 
immediatemajoralways
closedfixed 
20Community Appliance
 
 
dmiguelez
Core
No
0021767: API Change. In FIN_Orig_Payment_Schedule and FIN_Orig_Payment_ScheduleDetail all foreign keys should be ON DELETE CASCADE.
FIN_Orig_Payment_Schedule and FIN_Orig_Payment_ScheduleDetail are deprecated.
They have not been deleted since the users might want to recover the information.
But they should not interfere with the functionality of the application.

Since the Foreign Key references do not have the ON DELETE CASCADE Constraint, they do not allow to delete related records when it should be possible.

Plus, all the Link to Parent references of the Columns should be removed, for the same reason.

This change should not be risky, since this table is only kept for storing the information inside, nothing else.
FIN_Orig_Payment_Schedule and FIN_Orig_Payment_ScheduleDetail are deprecated.
They have not been deleted since the users might want to recover the information.
But they should not interfere with the functionality of the application.

Since the Foreign Key references do not have the ON DELETE CASCADE Constraint, they do not allow to delete related records when it should be possible.

Plus, all the Link to Parent references of the Columns should be removed, for the same reason.

This change should not be risky, since this table is only kept for storing the information inside, nothing else.
No tags attached.
Issue History
2012-09-26 16:56dmiguelezNew Issue
2012-09-26 16:56dmiguelezAssigned To => iciordia
2012-09-26 16:56dmiguelezModules => Core
2012-09-26 21:44iciordiaNote Added: 0052821
2012-09-26 21:45iciordiaAssigned Toiciordia => dmiguelez
2012-09-27 13:12dmiguelezStatusnew => scheduled
2012-09-27 13:12dmiguelezfix_in_branch => pi
2012-09-27 13:57hgbotCheckin
2012-09-27 13:57hgbotNote Added: 0052835
2012-09-27 13:57hgbotStatusscheduled => resolved
2012-09-27 13:57hgbotResolutionopen => fixed
2012-09-27 13:57hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/api-checks/rev/c0e12684d0fc7e132f6ec071e34b8a0b8345a720 [^]
2012-09-27 16:20dmiguelezClosed by => dmiguelez
2012-09-27 16:20dmiguelezNote Added: 0052839
2012-09-27 16:20dmiguelezStatusresolved => closed

Notes
(0052821)
iciordia   
2012-09-26 21:44   
Approved.

Ismael
(0052835)
hgbot   
2012-09-27 13:57   
Repository: erp/devel/api-checks
Changeset: c0e12684d0fc7e132f6ec071e34b8a0b8345a720
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Thu Sep 27 13:09:21 2012 +0200
URL: http://code.openbravo.com/erp/devel/api-checks/rev/c0e12684d0fc7e132f6ec071e34b8a0b8345a720 [^]

Fixes issue 21767: Foreign Keys are ON DELETE CASCADE on Deprecated
Table.

---
M model/src-db/database/model/tables/FIN_ORIG_PAYMENT_SCHEDULE.xml
M model/src-db/database/model/tables/FIN_ORIG_PAYM_SCHEDDETAIL.xml
---
(0052839)
dmiguelez   
2012-09-27 16:20   
API Checks working again