From 1a98f0ace650244cbb5a45e7c7fdcfeaa8498a1a Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Wed, 23 Oct 2013 20:50:15 +0800 Subject: [PATCH] IDEMPIERE-386 Redesign ASI usage for FIFO. Fixed migration script error. --- migration/i1.0z/oracle/201310141246_IDEMPIERE-386.sql | 3 +++ migration/i1.0z/postgresql/201310141246_IDEMPIERE-386.sql | 3 +++ 2 files changed, 6 insertions(+) diff --git a/migration/i1.0z/oracle/201310141246_IDEMPIERE-386.sql b/migration/i1.0z/oracle/201310141246_IDEMPIERE-386.sql index 7ab775deaf..2824bfcd93 100644 --- a/migration/i1.0z/oracle/201310141246_IDEMPIERE-386.sql +++ b/migration/i1.0z/oracle/201310141246_IDEMPIERE-386.sql @@ -312,6 +312,9 @@ UPDATE M_InventoryLineMA SET DateMaterialPolicy = (SELECT Date(i.MovementDate) F ALTER TABLE M_InventoryLineMA MODIFY DateMaterialPolicy NOT NULL ; +ALTER TABLE M_InventoryLineMA DROP CONSTRAINT m_inventorylinema_pkey +; + ALTER TABLE M_InventoryLineMA ADD CONSTRAINT m_inventorylinema_pkey PRIMARY KEY(m_inventoryline_id, m_attributesetinstance_id, datematerialpolicy) ; diff --git a/migration/i1.0z/postgresql/201310141246_IDEMPIERE-386.sql b/migration/i1.0z/postgresql/201310141246_IDEMPIERE-386.sql index 43fe40964a..34b997ef96 100644 --- a/migration/i1.0z/postgresql/201310141246_IDEMPIERE-386.sql +++ b/migration/i1.0z/postgresql/201310141246_IDEMPIERE-386.sql @@ -308,6 +308,9 @@ UPDATE M_InventoryLineMA SET DateMaterialPolicy = (SELECT Date(i.MovementDate) F ALTER TABLE M_InventoryLineMA ALTER COLUMN DateMaterialPolicy SET NOT NULL ; +ALTER TABLE M_InventoryLineMA DROP CONSTRAINT m_inventorylinema_pkey +; + ALTER TABLE M_InventoryLineMA ADD CONSTRAINT m_inventorylinema_pkey PRIMARY KEY(m_inventoryline_id, m_attributesetinstance_id, datematerialpolicy) ;