BF2452190 Migration script errors
- fix some minor script errors
This commit is contained in:
parent
a2f4361336
commit
acb4a453d6
|
@ -219,24 +219,13 @@ DELETE FROM AD_Ref_List WHERE AD_Ref_List_ID=53238
|
|||
UPDATE AD_Ref_Table SET WhereClause='C_DocType.AD_Client_ID=@#AD_Client_ID@ AND C_DocType.DocBaseType IN (''MOP'',''MOF'',''MQO'') ',Updated=TO_DATE('2008-12-08 22:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=53233
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ALTER TABLE PP_Cost_Collector ADD CostCollectorType NVARCHAR2(3);
|
||||
update PP_Cost_Collector set CostCollectorType='100' where MovementType in ('P+','W+');
|
||||
update PP_Cost_Collector set CostCollectorType='110' where CostCollectorType is null;
|
||||
alter table PP_Cost_Collector drop column MovementType;
|
||||
|
||||
-- 09.12.2008 19:25:45 EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
ALTER TABLE PP_Cost_Collector ADD CostCollectorType NVARCHAR2(2)
|
||||
;
|
||||
update PP_Cost_Collector set CostCollectorType='100' where MovementType in ('P+','W+');
|
||||
|
||||
update PP_Cost_Collector set CostCollectorType='110' where CostCollectorType is null;
|
||||
|
||||
alter table PP_Cost_Collector drop column MovementType;
|
||||
|
||||
-- 09.12.2008 19:27:54 EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
|
|
|
@ -13,11 +13,6 @@ ALTER TABLE PP_Cost_Collector MODIFY M_Warehouse_ID NUMBER(10) DEFAULT NULL
|
|||
INSERT INTO AD_Val_Rule (AD_Client_ID,AD_Org_ID,AD_Val_Rule_ID,Code,Created,CreatedBy,EntityType,IsActive,Name,Type,Updated,UpdatedBy) VALUES (0,0,52035,'PP_Order_Node.PP_Order_Workflow_ID=@PP_Order_Workflow_ID@',TO_DATE('2008-12-09 19:54:37','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','PP_Order_Node of PP_Order_Workflow','S',TO_DATE('2008-12-09 19:54:37','YYYY-MM-DD HH24:MI:SS'),0)
|
||||
;
|
||||
|
||||
-- 09.12.2008 19:54:39 EET
|
||||
-- [ 2412212 ] Fix Activity Control Report Window
|
||||
INSERT INTO AD_Val_Rule_Trl (AD_Language,AD_Val_Rule_ID, Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Val_Rule_ID, t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Val_Rule t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Val_Rule_ID=52035 AND EXISTS (SELECT * FROM AD_Val_Rule_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Val_Rule_ID!=t.AD_Val_Rule_ID)
|
||||
;
|
||||
|
||||
-- 09.12.2008 19:55:25 EET
|
||||
-- [ 2412212 ] Fix Activity Control Report Window
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=52035,Updated=TO_DATE('2008-12-09 19:55:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53831
|
||||
|
@ -33,11 +28,6 @@ ALTER TABLE PP_Cost_Collector MODIFY PP_Order_Node_ID NUMBER(10) DEFAULT NULL
|
|||
INSERT INTO AD_Val_Rule (AD_Client_ID,AD_Org_ID,AD_Val_Rule_ID,Code,Created,CreatedBy,EntityType,IsActive,Name,Type,Updated,UpdatedBy) VALUES (0,0,52036,'PP_Order_Workflow.PP_Order_ID=@PP_Order_ID@',TO_DATE('2008-12-09 20:11:53','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','PP_Order_Workflow_ID of PP_Order_ID','S',TO_DATE('2008-12-09 20:11:53','YYYY-MM-DD HH24:MI:SS'),0)
|
||||
;
|
||||
|
||||
-- 09.12.2008 20:11:54 EET
|
||||
-- [ 2412212 ] Fix Activity Control Report Window
|
||||
INSERT INTO AD_Val_Rule_Trl (AD_Language,AD_Val_Rule_ID, Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Val_Rule_ID, t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Val_Rule t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Val_Rule_ID=52036 AND EXISTS (SELECT * FROM AD_Val_Rule_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Val_Rule_ID!=t.AD_Val_Rule_ID)
|
||||
;
|
||||
|
||||
-- 09.12.2008 20:14:34 EET
|
||||
-- [ 2412212 ] Fix Activity Control Report Window
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=52036,Updated=TO_DATE('2008-12-09 20:14:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53832
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
SET SQLBLANKLINES ON
|
||||
-- Dec 15, 2008 1:10:14 PM ECT
|
||||
-- Implement Subcontract in Manufacturing Management
|
||||
UPDATE AD_SysConfig SET Value='Implementing Subcontract in Manufacturing Management',Updated=TO_DATE('2008-12-15 13:10:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_SysConfig_ID=50003
|
||||
|
|
|
@ -218,22 +218,13 @@ DELETE FROM AD_Ref_List WHERE AD_Ref_List_ID=53238
|
|||
UPDATE AD_Ref_Table SET WhereClause='C_DocType.AD_Client_ID=@#AD_Client_ID@ AND C_DocType.DocBaseType IN (''MOP'',''MOF'',''MQO'') ',Updated=TO_TIMESTAMP('2008-12-08 22:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=53233
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ALTER TABLE PP_Cost_Collector ADD COLUMN CostCollectorType VARCHAR(3);
|
||||
update PP_Cost_Collector set CostCollectorType='100' where MovementType in ('P+','W+');
|
||||
update PP_Cost_Collector set CostCollectorType='110' where CostCollectorType is null;
|
||||
alter table PP_Cost_Collector drop column MovementType;
|
||||
|
||||
-- 09.12.2008 19:25:45 EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
ALTER TABLE PP_Cost_Collector ADD COLUMN CostCollectorType VARCHAR(2)
|
||||
;
|
||||
update PP_Cost_Collector set CostCollectorType='100' where MovementType in ('P+','W+');
|
||||
|
||||
update PP_Cost_Collector set CostCollectorType='110' where CostCollectorType is null;
|
||||
|
||||
alter table PP_Cost_Collector drop column MovementType;
|
||||
|
||||
-- 09.12.2008 19:27:54 EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
|
|
|
@ -14,11 +14,6 @@ insert into t_alter_column values('pp_cost_collector','M_Warehouse_ID','NUMERIC(
|
|||
INSERT INTO AD_Val_Rule (AD_Client_ID,AD_Org_ID,AD_Val_Rule_ID,Code,Created,CreatedBy,EntityType,IsActive,Name,Type,Updated,UpdatedBy) VALUES (0,0,52035,'PP_Order_Node.PP_Order_Workflow_ID=@PP_Order_Workflow_ID@',TO_TIMESTAMP('2008-12-09 19:54:37','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','PP_Order_Node of PP_Order_Workflow','S',TO_TIMESTAMP('2008-12-09 19:54:37','YYYY-MM-DD HH24:MI:SS'),0)
|
||||
;
|
||||
|
||||
-- 09.12.2008 19:54:39 EET
|
||||
-- [ 2412212 ] Fix Activity Control Report Window
|
||||
INSERT INTO AD_Val_Rule_Trl (AD_Language,AD_Val_Rule_ID, Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Val_Rule_ID, t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Val_Rule t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Val_Rule_ID=52035 AND EXISTS (SELECT * FROM AD_Val_Rule_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Val_Rule_ID!=t.AD_Val_Rule_ID)
|
||||
;
|
||||
|
||||
-- 09.12.2008 19:55:25 EET
|
||||
-- [ 2412212 ] Fix Activity Control Report Window
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=52035,Updated=TO_TIMESTAMP('2008-12-09 19:55:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53831
|
||||
|
@ -34,11 +29,6 @@ insert into t_alter_column values('pp_cost_collector','PP_Order_Node_ID','NUMERI
|
|||
INSERT INTO AD_Val_Rule (AD_Client_ID,AD_Org_ID,AD_Val_Rule_ID,Code,Created,CreatedBy,EntityType,IsActive,Name,Type,Updated,UpdatedBy) VALUES (0,0,52036,'PP_Order_Workflow.PP_Order_ID=@PP_Order_ID@',TO_TIMESTAMP('2008-12-09 20:11:53','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','PP_Order_Workflow_ID of PP_Order_ID','S',TO_TIMESTAMP('2008-12-09 20:11:53','YYYY-MM-DD HH24:MI:SS'),0)
|
||||
;
|
||||
|
||||
-- 09.12.2008 20:11:54 EET
|
||||
-- [ 2412212 ] Fix Activity Control Report Window
|
||||
INSERT INTO AD_Val_Rule_Trl (AD_Language,AD_Val_Rule_ID, Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Val_Rule_ID, t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Val_Rule t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Val_Rule_ID=52036 AND EXISTS (SELECT * FROM AD_Val_Rule_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Val_Rule_ID!=t.AD_Val_Rule_ID)
|
||||
;
|
||||
|
||||
-- 09.12.2008 20:14:34 EET
|
||||
-- [ 2412212 ] Fix Activity Control Report Window
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=52036,Updated=TO_TIMESTAMP('2008-12-09 20:14:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53832
|
||||
|
|
Loading…
Reference in New Issue