Error trying delete Window definition when the window is on ad_recentitem table

Description

Hi guys,

I'm trying to delete a Window on dictionary definition but the window is related to table ad_recentitem. I change database definition for constraint with this code:

ALTER TABLE ad_recentitem
DROP CONSTRAINT adwindow_adrecentitem

ALTER TABLE ad_recentitem
ADD CONSTRAINT adwindow_adrecentitem FOREIGN KEY (ad_window_id)
REFERENCES ad_window (ad_window_id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED

Can you add this code to migration script?

Environment

None

Assignee

Carlos Ruiz

Reporter

Miguel Hernández Giusti

Labels

None

Tested By

None

Components

Priority

Blocker
Configure