IDEMPIERE-386 Redesign ASI usage for FIFO. Fixed migration script error.
This commit is contained in:
parent
a45b0b1238
commit
1a98f0ace6
|
@ -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)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue