diff --git a/migration/i4.1/oracle/201707202213_IDEMPIERE-3424.sql b/migration/i4.1/oracle/201707202213_IDEMPIERE-3424.sql new file mode 100755 index 0000000000..e41e6c0fbb --- /dev/null +++ b/migration/i4.1/oracle/201707202213_IDEMPIERE-3424.sql @@ -0,0 +1,17 @@ +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- IDEMPIERE-3424 table m_movement / constraint cbpartnerlocation_mmovement incorrect +-- Jul 20, 2017 20:13:32 PM CEST +ALTER TABLE m_movement DROP CONSTRAINT cbpartnerlocation_mmovement +; + +ALTER TABLE m_movement ADD CONSTRAINT cbpartnerlocation_mmovement FOREIGN KEY (c_bpartner_location_id) + REFERENCES c_bpartner_location (c_bpartner_location_id) MATCH SIMPLE + ON UPDATE NO ACTION ON DELETE NO ACTION DEFERRABLE INITIALLY DEFERRED +; + + +SELECT register_migration_script('201707202213_IDEMPIERE-3424.sql') FROM dual +; + diff --git a/migration/i4.1/postgresql/201707202213_IDEMPIERE-3424.sql b/migration/i4.1/postgresql/201707202213_IDEMPIERE-3424.sql new file mode 100755 index 0000000000..e6d227484b --- /dev/null +++ b/migration/i4.1/postgresql/201707202213_IDEMPIERE-3424.sql @@ -0,0 +1,14 @@ +-- IDEMPIERE-3424 table m_movement / constraint cbpartnerlocation_mmovement incorrect +-- Jul 20, 2017 20:13:32 PM CEST +ALTER TABLE m_movement DROP CONSTRAINT cbpartnerlocation_mmovement +; + +ALTER TABLE m_movement ADD CONSTRAINT cbpartnerlocation_mmovement FOREIGN KEY (c_bpartner_location_id) + REFERENCES c_bpartner_location (c_bpartner_location_id) MATCH SIMPLE + ON UPDATE NO ACTION ON DELETE NO ACTION DEFERRABLE INITIALLY DEFERRED +; + + +SELECT register_migration_script('201707202213_IDEMPIERE-3424.sql') FROM dual +; +