Revert Revision: 8308
BF [2531025] - M_InOutLine.M_Locator_ID should be mandatory https://sourceforge.net/tracker/?func=detail&aid=2531025&group_id=176962&atid=879332
This commit is contained in:
parent
07b4980f7f
commit
4cfe920dec
|
@ -1,21 +1 @@
|
||||||
-- Update M_Locator_ID NULL columns using first locator form InOut header warehouse
|
-- Reverted
|
||||||
UPDATE M_InOutLine iol SET M_Locator_ID = (
|
|
||||||
SELECT MIN(loc.M_Locator_ID)
|
|
||||||
FROM M_InOut io
|
|
||||||
INNER JOIN M_Warehouse wh ON (wh.M_Warehouse_ID=io.M_Warehouse_ID)
|
|
||||||
INNER JOIN M_Locator loc ON (loc.M_Warehouse_ID=wh.M_Warehouse_ID)
|
|
||||||
WHERE io.M_InOut_ID=iol.M_InOut_ID
|
|
||||||
)
|
|
||||||
WHERE iol.M_Locator_ID is null
|
|
||||||
;
|
|
||||||
|
|
||||||
-- 04.02.2009 14:17:53 EET
|
|
||||||
--
|
|
||||||
ALTER TABLE M_InOutLine MODIFY M_Locator_ID NUMBER(10)
|
|
||||||
;
|
|
||||||
|
|
||||||
-- 04.02.2009 14:17:53 EET
|
|
||||||
--
|
|
||||||
ALTER TABLE M_InOutLine MODIFY M_Locator_ID NOT NULL
|
|
||||||
;
|
|
||||||
|
|
||||||
|
|
|
@ -1,21 +1 @@
|
||||||
-- Update M_Locator_ID NULL columns using first locator form InOut header warehouse
|
-- Reverted
|
||||||
UPDATE M_InOutLine iol SET M_Locator_ID = (
|
|
||||||
SELECT MIN(loc.M_Locator_ID)
|
|
||||||
FROM M_InOut io
|
|
||||||
INNER JOIN M_Warehouse wh ON (wh.M_Warehouse_ID=io.M_Warehouse_ID)
|
|
||||||
INNER JOIN M_Locator loc ON (loc.M_Warehouse_ID=wh.M_Warehouse_ID)
|
|
||||||
WHERE io.M_InOut_ID=iol.M_InOut_ID
|
|
||||||
)
|
|
||||||
WHERE iol.M_Locator_ID is null
|
|
||||||
;
|
|
||||||
|
|
||||||
-- 04.02.2009 14:17:53 EET
|
|
||||||
--
|
|
||||||
insert into t_alter_column values('m_inoutline','M_Locator_ID','NUMERIC(10)',null,null)
|
|
||||||
;
|
|
||||||
|
|
||||||
-- 04.02.2009 14:17:53 EET
|
|
||||||
--
|
|
||||||
insert into t_alter_column values('m_inoutline','M_Locator_ID',null,'NOT NULL',null)
|
|
||||||
;
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue