Release scripts
This commit is contained in:
parent
42ed76d5f8
commit
b29c11a889
|
@ -0,0 +1,48 @@
|
|||
ALTER TABLE A_Asset_Addition ADD CONSTRAINT CDocType_AAssetAddition FOREIGN KEY (C_DocType_ID) REFERENCES C_DocType DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE A_Asset_Disposed ADD CONSTRAINT CDocType_AAssetDisposed FOREIGN KEY (C_DocType_ID) REFERENCES C_DocType DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE I_FAJournal ADD CONSTRAINT CLocFrom_IFAJournal FOREIGN KEY (C_LocFrom_ID) REFERENCES C_Location DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE I_FAJournal ADD CONSTRAINT CLocTo_IFAJournal FOREIGN KEY (C_LocTo_ID) REFERENCES C_Location DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE I_ProductPlanning ADD CONSTRAINT SalesRep_IProductPlanning FOREIGN KEY (SalesRep_ID) REFERENCES AD_User DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE I_ProductPlanning ADD CONSTRAINT ADWorkflow_IProductPlanning FOREIGN KEY (AD_Workflow_ID) REFERENCES AD_Workflow DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE I_ProductPlanning ADD CONSTRAINT DDNetworkDistribution_IProduct FOREIGN KEY (DD_NetworkDistribution_ID) REFERENCES DD_NetworkDistribution DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE M_CommodityShipment ADD CONSTRAINT CountryOfManufacture_MCommodit FOREIGN KEY (CountryOfManufacture_ID) REFERENCES C_Country DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE M_Package ADD CONSTRAINT HoldAddress_MPackage FOREIGN KEY (HoldAddress_ID) REFERENCES C_BPartner_Location DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE M_ShippingTransaction ADD CONSTRAINT HoldAddress_MShippingTransacti FOREIGN KEY (HoldAddress_ID) REFERENCES C_BPartner_Location DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE A_Asset_Acct ADD CONSTRAINT AAssetvc_AAssetAcct FOREIGN KEY(A_Asset_Acct) REFERENCES C_ValidCombination(C_ValidCombination_ID) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE A_Asset_Acct ADD CONSTRAINT ADepreciationvc_AAssetAcct FOREIGN KEY(A_Depreciation_Acct) REFERENCES C_ValidCombination(C_ValidCombination_ID) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE A_Asset_Change ADD CONSTRAINT AAssetvc_AAssetChange FOREIGN KEY(A_Asset_Acct) REFERENCES C_ValidCombination(C_ValidCombination_ID) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE A_Asset_Group_Acct ADD CONSTRAINT ADepreciationvc_AAssetGroupAcc FOREIGN KEY(A_Depreciation_Acct) REFERENCES C_ValidCombination(C_ValidCombination_ID) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE A_Asset_Transfer ADD CONSTRAINT AAssetvc_AAssetTransfer FOREIGN KEY(A_Asset_Acct) REFERENCES C_ValidCombination(C_ValidCombination_ID) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201304241229_Release_FKs.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
-- Apr 24, 2013 1:24:51 PM COT
|
||||
-- Release fix db problems
|
||||
UPDATE AD_Column SET AD_Process_ID=NULL,Updated=TO_DATE('2013-04-24 13:24:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=50110
|
||||
;
|
||||
|
||||
update ad_field set isdisplayedgrid='N' where ad_field_id in (
|
||||
200848,
|
||||
200891,
|
||||
200870
|
||||
)
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201304241412_Release_FixDB.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
UPDATE AD_Column SET EntityType = 'D' WHERE EntityType = 'U' AND AD_Column_ID<1000000
|
||||
;
|
||||
|
||||
UPDATE AD_Element SET EntityType = 'D' WHERE EntityType = 'U' AND AD_Element_ID<1000000
|
||||
;
|
||||
|
||||
UPDATE AD_Field SET EntityType = 'D' WHERE EntityType = 'A' AND AD_Field_ID<1000000
|
||||
;
|
||||
|
||||
UPDATE AD_Field SET EntityType = 'D' WHERE EntityType = 'U' AND AD_Field_ID<1000000
|
||||
;
|
||||
|
||||
UPDATE AD_InfoColumn SET EntityType = 'D' WHERE EntityType = 'U' AND AD_InfoColumn_ID<1000000
|
||||
;
|
||||
|
||||
UPDATE AD_Message SET EntityType = 'D' WHERE EntityType = 'U' AND AD_Message_ID<1000000
|
||||
;
|
||||
|
||||
UPDATE AD_Process SET EntityType = 'D' WHERE EntityType = 'U' AND AD_Process_ID<1000000
|
||||
;
|
||||
|
||||
UPDATE AD_Process_Para SET EntityType = 'D' WHERE EntityType = 'U' AND AD_Process_Para_ID<1000000
|
||||
;
|
||||
|
||||
UPDATE AD_Ref_Table SET EntityType = 'D' WHERE EntityType = 'U' AND AD_Reference_ID<1000000
|
||||
;
|
||||
|
||||
UPDATE AD_Table SET EntityType = 'D' WHERE EntityType = 'U' AND AD_Table_ID<1000000
|
||||
;
|
||||
|
||||
UPDATE AD_Val_Rule SET EntityType = 'D' WHERE EntityType = 'U' AND AD_Val_Rule_ID<1000000
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201304241528_FixWrongEntityTypes.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
UPDATE AD_SYSTEM
|
||||
SET releaseno = '1.0b',
|
||||
VERSION = '2013-04-24'
|
||||
WHERE ad_system_id = 0 AND ad_client_id = 0
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201304241732_Version.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
ALTER TABLE A_Asset_Addition ADD CONSTRAINT CDocType_AAssetAddition FOREIGN KEY (C_DocType_ID) REFERENCES C_DocType DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE A_Asset_Disposed ADD CONSTRAINT CDocType_AAssetDisposed FOREIGN KEY (C_DocType_ID) REFERENCES C_DocType DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE I_FAJournal ADD CONSTRAINT CLocFrom_IFAJournal FOREIGN KEY (C_LocFrom_ID) REFERENCES C_Location DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE I_FAJournal ADD CONSTRAINT CLocTo_IFAJournal FOREIGN KEY (C_LocTo_ID) REFERENCES C_Location DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE I_ProductPlanning ADD CONSTRAINT SalesRep_IProductPlanning FOREIGN KEY (SalesRep_ID) REFERENCES AD_User DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE I_ProductPlanning ADD CONSTRAINT ADWorkflow_IProductPlanning FOREIGN KEY (AD_Workflow_ID) REFERENCES AD_Workflow DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE I_ProductPlanning ADD CONSTRAINT DDNetworkDistribution_IProduct FOREIGN KEY (DD_NetworkDistribution_ID) REFERENCES DD_NetworkDistribution DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE M_CommodityShipment ADD CONSTRAINT CountryOfManufacture_MCommodit FOREIGN KEY (CountryOfManufacture_ID) REFERENCES C_Country DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE M_Package ADD CONSTRAINT HoldAddress_MPackage FOREIGN KEY (HoldAddress_ID) REFERENCES C_BPartner_Location DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE M_ShippingTransaction ADD CONSTRAINT HoldAddress_MShippingTransacti FOREIGN KEY (HoldAddress_ID) REFERENCES C_BPartner_Location DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE A_Asset_Acct ADD CONSTRAINT AAssetvc_AAssetAcct FOREIGN KEY(A_Asset_Acct) REFERENCES C_ValidCombination(C_ValidCombination_ID) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE A_Asset_Acct ADD CONSTRAINT ADepreciationvc_AAssetAcct FOREIGN KEY(A_Depreciation_Acct) REFERENCES C_ValidCombination(C_ValidCombination_ID) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE A_Asset_Change ADD CONSTRAINT AAssetvc_AAssetChange FOREIGN KEY(A_Asset_Acct) REFERENCES C_ValidCombination(C_ValidCombination_ID) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE A_Asset_Group_Acct ADD CONSTRAINT ADepreciationvc_AAssetGroupAcc FOREIGN KEY(A_Depreciation_Acct) REFERENCES C_ValidCombination(C_ValidCombination_ID) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
ALTER TABLE A_Asset_Transfer ADD CONSTRAINT AAssetvc_AAssetTransfer FOREIGN KEY(A_Asset_Acct) REFERENCES C_ValidCombination(C_ValidCombination_ID) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201304241229_Release_FKs.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
-- Apr 24, 2013 1:24:51 PM COT
|
||||
-- Release fix db problems
|
||||
UPDATE AD_Column SET AD_Process_ID=NULL,Updated=TO_TIMESTAMP('2013-04-24 13:24:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=50110
|
||||
;
|
||||
|
||||
update ad_field set isdisplayedgrid='N' where ad_field_id in (
|
||||
200848,
|
||||
200891,
|
||||
200870
|
||||
)
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201304241412_Release_FixDB.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
UPDATE AD_Column SET EntityType = 'D' WHERE EntityType = 'U' AND AD_Column_ID<1000000
|
||||
;
|
||||
|
||||
UPDATE AD_Element SET EntityType = 'D' WHERE EntityType = 'U' AND AD_Element_ID<1000000
|
||||
;
|
||||
|
||||
UPDATE AD_Field SET EntityType = 'D' WHERE EntityType = 'A' AND AD_Field_ID<1000000
|
||||
;
|
||||
|
||||
UPDATE AD_Field SET EntityType = 'D' WHERE EntityType = 'U' AND AD_Field_ID<1000000
|
||||
;
|
||||
|
||||
UPDATE AD_InfoColumn SET EntityType = 'D' WHERE EntityType = 'U' AND AD_InfoColumn_ID<1000000
|
||||
;
|
||||
|
||||
UPDATE AD_Message SET EntityType = 'D' WHERE EntityType = 'U' AND AD_Message_ID<1000000
|
||||
;
|
||||
|
||||
UPDATE AD_Process SET EntityType = 'D' WHERE EntityType = 'U' AND AD_Process_ID<1000000
|
||||
;
|
||||
|
||||
UPDATE AD_Process_Para SET EntityType = 'D' WHERE EntityType = 'U' AND AD_Process_Para_ID<1000000
|
||||
;
|
||||
|
||||
UPDATE AD_Ref_Table SET EntityType = 'D' WHERE EntityType = 'U' AND AD_Reference_ID<1000000
|
||||
;
|
||||
|
||||
UPDATE AD_Table SET EntityType = 'D' WHERE EntityType = 'U' AND AD_Table_ID<1000000
|
||||
;
|
||||
|
||||
UPDATE AD_Val_Rule SET EntityType = 'D' WHERE EntityType = 'U' AND AD_Val_Rule_ID<1000000
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201304241528_FixWrongEntityTypes.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
UPDATE AD_SYSTEM
|
||||
SET releaseno = '1.0b',
|
||||
VERSION = '2013-04-24'
|
||||
WHERE ad_system_id = 0 AND ad_client_id = 0
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201304241732_Version.sql') FROM dual
|
||||
;
|
||||
|
Loading…
Reference in New Issue