diff --git a/migration/i2.0z/oracle/201407151334_IDEMPIERE-1998.sql b/migration/i2.0z/oracle/201407151334_IDEMPIERE-1998.sql index dbc4959e71..048e7369a1 100644 --- a/migration/i2.0z/oracle/201407151334_IDEMPIERE-1998.sql +++ b/migration/i2.0z/oracle/201407151334_IDEMPIERE-1998.sql @@ -1,4 +1,8 @@ -- IDEMPIERE-1998 for backward compatibility insert the creator as scheduler recipient +INSERT INTO AD_SchedulerRecipient(ad_schedulerrecipient_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, ad_scheduler_id, ad_user_id, ad_role_id, ad_schedulerrecipient_uu) + VALUES(200000, 0, 0, 'Y', to_date('20140715133400','yyyymmddHH24MISS'), 100, to_date('20140715133400','yyyymmddHH24MISS'), 100, 100, 0, NULL, '2c529b16-06c0-4cb5-85fb-fbb81ab94238') +; + insert into ad_schedulerrecipient ( diff --git a/migration/i2.0z/oracle/201410301904_DictFixesRelease.sql b/migration/i2.0z/oracle/201410301904_DictFixesRelease.sql new file mode 100644 index 0000000000..d4074d699c --- /dev/null +++ b/migration/i2.0z/oracle/201410301904_DictFixesRelease.sql @@ -0,0 +1,46 @@ +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- Oct 30, 2014 6:57:05 PM COT +UPDATE AD_Column SET AD_Process_ID=NULL,Updated=TO_DATE('2014-10-30 18:57:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=61940 +; + +-- Oct 30, 2014 8:34:35 PM COT +UPDATE AD_Field SET EntityType='D',Updated=TO_DATE('2014-10-30 20:34:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202546 +; + +-- Oct 30, 2014 8:38:17 PM COT +UPDATE AD_TreeNodeMM SET AD_TreeNodeMM_UU='24a76214-340f-47ef-9fed-0e80713075d4' WHERE AD_Tree_ID=10 AND Node_ID=200072 +; + +-- Oct 30, 2014 8:38:17 PM COT +UPDATE AD_TreeNodeMM SET AD_TreeNodeMM_UU='20f2ad82-f607-4800-8651-d64417559971' WHERE AD_Tree_ID=10 AND Node_ID=200093 +; + +-- Oct 30, 2014 8:54:47 PM COT +UPDATE AD_Column SET FKConstraintName='SalesRep_CContactActivity', FKConstraintType='N',Updated=TO_DATE('2014-10-30 20:54:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=62467 +; + +-- Oct 30, 2014 8:54:47 PM COT +ALTER TABLE C_ContactActivity ADD CONSTRAINT SalesRep_CContactActivity FOREIGN KEY (SalesRep_ID) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED +; + +-- Oct 30, 2014 8:55:35 PM COT +ALTER TABLE AD_InfoProcess ADD CONSTRAINT ADInfoWindow_ADInfoProcess FOREIGN KEY (AD_InfoWindow_ID) REFERENCES ad_infowindow(ad_infowindow_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED +; + +-- Oct 30, 2014 8:55:49 PM COT +ALTER TABLE AD_InfoProcess ADD CONSTRAINT ADProcess_ADInfoProcess FOREIGN KEY (AD_Process_ID) REFERENCES ad_process(ad_process_id) DEFERRABLE INITIALLY DEFERRED +; + +-- Oct 30, 2014 8:56:10 PM COT +ALTER TABLE AD_PrintFormat_Trl ADD CONSTRAINT adlanguage_adprintformtrl FOREIGN KEY (AD_Language) REFERENCES ad_language(ad_language) DEFERRABLE INITIALLY DEFERRED +; + +-- Oct 30, 2014 8:56:26 PM COT +ALTER TABLE AD_PrintFormat_Trl ADD CONSTRAINT adprintformat_trl FOREIGN KEY (AD_PrintFormat_ID) REFERENCES ad_printformat(ad_printformat_id) DEFERRABLE INITIALLY DEFERRED +; + +SELECT register_migration_script('201410301904_DictFixesRelease.sql') FROM dual +; + diff --git a/migration/i2.0z/oracle/201410310000_Version.sql b/migration/i2.0z/oracle/201410310000_Version.sql new file mode 100644 index 0000000000..5fdd0a6766 --- /dev/null +++ b/migration/i2.0z/oracle/201410310000_Version.sql @@ -0,0 +1,9 @@ +UPDATE AD_SYSTEM + SET releaseno = '2.1', + VERSION = '2014-10-31' + WHERE ad_system_id = 0 AND ad_client_id = 0 +; + +SELECT register_migration_script('201410310000_Version.sql') FROM dual +; + diff --git a/migration/i2.0z/postgresql/201407151334_IDEMPIERE-1998.sql b/migration/i2.0z/postgresql/201407151334_IDEMPIERE-1998.sql index 85c51bb958..1bf073cd12 100644 --- a/migration/i2.0z/postgresql/201407151334_IDEMPIERE-1998.sql +++ b/migration/i2.0z/postgresql/201407151334_IDEMPIERE-1998.sql @@ -1,4 +1,8 @@ -- IDEMPIERE-1998 for backward compatibility insert the creator as scheduler recipient +INSERT INTO AD_SchedulerRecipient(ad_schedulerrecipient_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, ad_scheduler_id, ad_user_id, ad_role_id, ad_schedulerrecipient_uu) + VALUES(200000, 0, 0, 'Y', to_timestamp('20140715133400','yyyymmddHH24MISS'), 100, to_timestamp('20140715133400','yyyymmddHH24MISS'), 100, 100, 0, NULL, '2c529b16-06c0-4cb5-85fb-fbb81ab94238') +; + insert into ad_schedulerrecipient ( diff --git a/migration/i2.0z/postgresql/201410301904_DictFixesRelease.sql b/migration/i2.0z/postgresql/201410301904_DictFixesRelease.sql new file mode 100644 index 0000000000..a95e7c265e --- /dev/null +++ b/migration/i2.0z/postgresql/201410301904_DictFixesRelease.sql @@ -0,0 +1,43 @@ +-- Oct 30, 2014 6:57:05 PM COT +UPDATE AD_Column SET AD_Process_ID=NULL,Updated=TO_TIMESTAMP('2014-10-30 18:57:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=61940 +; + +-- Oct 30, 2014 8:34:35 PM COT +UPDATE AD_Field SET EntityType='D',Updated=TO_TIMESTAMP('2014-10-30 20:34:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202546 +; + +-- Oct 30, 2014 8:38:17 PM COT +UPDATE AD_TreeNodeMM SET AD_TreeNodeMM_UU='24a76214-340f-47ef-9fed-0e80713075d4' WHERE AD_Tree_ID=10 AND Node_ID=200072 +; + +-- Oct 30, 2014 8:38:17 PM COT +UPDATE AD_TreeNodeMM SET AD_TreeNodeMM_UU='20f2ad82-f607-4800-8651-d64417559971' WHERE AD_Tree_ID=10 AND Node_ID=200093 +; + +-- Oct 30, 2014 8:54:47 PM COT +UPDATE AD_Column SET FKConstraintName='SalesRep_CContactActivity', FKConstraintType='N',Updated=TO_TIMESTAMP('2014-10-30 20:54:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=62467 +; + +-- Oct 30, 2014 8:54:47 PM COT +ALTER TABLE C_ContactActivity ADD CONSTRAINT SalesRep_CContactActivity FOREIGN KEY (SalesRep_ID) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED +; + +-- Oct 30, 2014 8:55:35 PM COT +ALTER TABLE AD_InfoProcess ADD CONSTRAINT ADInfoWindow_ADInfoProcess FOREIGN KEY (AD_InfoWindow_ID) REFERENCES ad_infowindow(ad_infowindow_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED +; + +-- Oct 30, 2014 8:55:49 PM COT +ALTER TABLE AD_InfoProcess ADD CONSTRAINT ADProcess_ADInfoProcess FOREIGN KEY (AD_Process_ID) REFERENCES ad_process(ad_process_id) DEFERRABLE INITIALLY DEFERRED +; + +-- Oct 30, 2014 8:56:10 PM COT +ALTER TABLE AD_PrintFormat_Trl ADD CONSTRAINT adlanguage_adprintformtrl FOREIGN KEY (AD_Language) REFERENCES ad_language(ad_language) DEFERRABLE INITIALLY DEFERRED +; + +-- Oct 30, 2014 8:56:26 PM COT +ALTER TABLE AD_PrintFormat_Trl ADD CONSTRAINT adprintformat_trl FOREIGN KEY (AD_PrintFormat_ID) REFERENCES ad_printformat(ad_printformat_id) DEFERRABLE INITIALLY DEFERRED +; + +SELECT register_migration_script('201410301904_DictFixesRelease.sql') FROM dual +; + diff --git a/migration/i2.0z/postgresql/201410310000_Version.sql b/migration/i2.0z/postgresql/201410310000_Version.sql new file mode 100644 index 0000000000..5fdd0a6766 --- /dev/null +++ b/migration/i2.0z/postgresql/201410310000_Version.sql @@ -0,0 +1,9 @@ +UPDATE AD_SYSTEM + SET releaseno = '2.1', + VERSION = '2014-10-31' + WHERE ad_system_id = 0 AND ad_client_id = 0 +; + +SELECT register_migration_script('201410310000_Version.sql') FROM dual +; +