IDEMPIERE-386 Redesign ASI usage for FIFO. Fixed migration script error.

This commit is contained in:
Heng Sin Low 2013-10-23 20:50:15 +08:00
parent a45b0b1238
commit 1a98f0ace6
2 changed files with 6 additions and 0 deletions

View File

@ -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 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) ALTER TABLE M_InventoryLineMA ADD CONSTRAINT m_inventorylinema_pkey PRIMARY KEY(m_inventoryline_id, m_attributesetinstance_id, datematerialpolicy)
; ;

View File

@ -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 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) ALTER TABLE M_InventoryLineMA ADD CONSTRAINT m_inventorylinema_pkey PRIMARY KEY(m_inventoryline_id, m_attributesetinstance_id, datematerialpolicy)
; ;