Fix problems reported in migration script

[2761420] - Advanced Search
https://sourceforge.net/tracker/?func=detail&atid=879334&aid=2761420&group_id=176962
This commit is contained in:
Carlos Ruiz 2009-05-18 17:54:57 +00:00
parent ed72aa912a
commit d8626f9ec9
6 changed files with 124 additions and 74 deletions

View File

@ -8,11 +8,6 @@ INSERT INTO AD_Table (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Table_ID,CopyColumns
INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=53169 AND EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Table_ID!=t.AD_Table_ID)
;
-- Feb 18, 2009 12:44:58 PM CET
-- Product Category QA - kthiemann@adempiere.org
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,1000325,TO_DATE('2009-02-18 12:44:58','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'Table AD_SearchDefinition',1,'Y','N','Y','Y','AD_SearchDefinition','N',1000000,TO_DATE('2009-02-18 12:44:58','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 18, 2009 12:47:51 PM CET
-- Product Category QA - kthiemann@adempiere.org
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56799,102,0,19,53169,'AD_Client_ID',TO_DATE('2009-02-18 12:47:50','YYYY-MM-DD HH24:MI:SS'),100,'@#AD_Client_ID@','Client/Tenant for this installation.','D',22,'A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Y','Y','N','N','N','N','N','Y','N','N','N','N','N','Client',0,TO_DATE('2009-02-18 12:47:50','YYYY-MM-DD HH24:MI:SS'),100,1.000000000000)
@ -336,31 +331,6 @@ UPDATE AD_Window_Access SET IsReadWrite='N',Updated=TO_DATE('2009-02-18 13:22:43
UPDATE AD_Window_Access SET IsReadWrite='N',Updated=TO_DATE('2009-02-18 13:22:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=50002 AND AD_Window_ID=53069
;
-- Feb 18, 2009 1:22:45 PM CET
-- Product Category QA - kthiemann@adempiere.org
UPDATE AD_Window_Access SET IsReadWrite='N',Updated=TO_DATE('2009-02-18 13:22:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=1000000 AND AD_Window_ID=53069
;
-- Feb 18, 2009 1:22:45 PM CET
-- Product Category QA - kthiemann@adempiere.org
UPDATE AD_Window_Access SET IsReadWrite='N',Updated=TO_DATE('2009-02-18 13:22:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=1000001 AND AD_Window_ID=53069
;
-- Feb 18, 2009 1:22:47 PM CET
-- Product Category QA - kthiemann@adempiere.org
UPDATE AD_Window_Access SET IsActive='N', IsReadWrite='N',Updated=TO_DATE('2009-02-18 13:22:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=1000023 AND AD_Window_ID=53069
;
-- Feb 18, 2009 1:22:48 PM CET
-- Product Category QA - kthiemann@adempiere.org
UPDATE AD_Window_Access SET IsActive='N',Updated=TO_DATE('2009-02-18 13:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=1000001 AND AD_Window_ID=53069
;
-- Feb 18, 2009 1:22:49 PM CET
-- Product Category QA - kthiemann@adempiere.org
UPDATE AD_Window_Access SET IsActive='N',Updated=TO_DATE('2009-02-18 13:22:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=1000000 AND AD_Window_ID=53069
;
-- Feb 18, 2009 1:22:50 PM CET
-- Product Category QA - kthiemann@adempiere.org
UPDATE AD_Window_Access SET IsActive='N',Updated=TO_DATE('2009-02-18 13:22:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=50002 AND AD_Window_ID=53069
@ -760,11 +730,6 @@ UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- Feb 18, 2009 1:49:18 PM CET
-- Product Category QA - kthiemann@adempiere.org
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=1000000
;
-- Feb 18, 2009 1:49:18 PM CET
-- Product Category QA - kthiemann@adempiere.org
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53014

View File

@ -1,11 +1,11 @@
-- Feb 20, 2009 12:22:31 PM CET
-- Advanced Search
INSERT INTO AD_SearchDefinition (AD_Client_ID,AD_Column_ID,AD_Org_ID,AD_SearchDefinition_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,DataType,Description,IsActive,IsDefault,Name,PO_Window_ID,SearchType,TransactionCode,Updated,UpdatedBy) VALUES (0,2169,0,1000004,259,143,TO_DATE('2009-02-20 12:22:31','YYYY-MM-DD HH24:MI:SS'),100,'S','Searches for an order with a fitting documentNo','Y','Y','Order Search',181,'T','O',TO_DATE('2009-02-20 12:22:31','YYYY-MM-DD HH24:MI:SS'),100)
INSERT INTO AD_SearchDefinition (AD_Client_ID,AD_Column_ID,AD_Org_ID,AD_SearchDefinition_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,DataType,Description,IsActive,IsDefault,Name,PO_Window_ID,SearchType,TransactionCode,Updated,UpdatedBy) VALUES (0,2169,0,50000,259,143,TO_DATE('2009-02-20 12:22:31','YYYY-MM-DD HH24:MI:SS'),100,'S','Searches for an order with a fitting documentNo','Y','Y','Order Search',181,'T','O',TO_DATE('2009-02-20 12:22:31','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 20, 2009 12:26:12 PM CET
-- Advanced Search
INSERT INTO AD_SearchDefinition (AD_Client_ID,AD_Org_ID,AD_SearchDefinition_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,DataType,Description,IsActive,IsDefault,Name,Query,SearchType,TransactionCode,Updated,UpdatedBy) VALUES (0,0,1000005,291,123,TO_DATE('2009-02-20 12:26:12','YYYY-MM-DD HH24:MI:SS'),100,'S','Searches for a Business Partner with fitting BPName or ContactName','Y','N','Business Partner Search','SELECT b.C_BPartner_ID FROM C_BPartner b
INSERT INTO AD_SearchDefinition (AD_Client_ID,AD_Org_ID,AD_SearchDefinition_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,DataType,Description,IsActive,IsDefault,Name,Query,SearchType,TransactionCode,Updated,UpdatedBy) VALUES (0,0,50001,291,123,TO_DATE('2009-02-20 12:26:12','YYYY-MM-DD HH24:MI:SS'),100,'S','Searches for a Business Partner with fitting BPName or ContactName','Y','N','Business Partner Search','SELECT b.C_BPartner_ID FROM C_BPartner b
INNER JOIN AD_User u ON (b.C_BPartner_ID = u.C_BPartner_ID)
WHERE UPPER(b.name) LIKE UPPER(?) OR UPPER(u.name) LIKE UPPER(?)','Q','BP',TO_DATE('2009-02-20 12:26:12','YYYY-MM-DD HH24:MI:SS'),100)
;

View File

@ -0,0 +1,60 @@
-- May 18, 2009 12:51:57 PM COT
-- Add missing sequences
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,53298,TO_DATE('2009-05-18 12:51:53','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'Table AD_SearchDefinition',1,'Y','N','Y','Y','AD_SearchDefinition','N',1000000,TO_DATE('2009-05-18 12:51:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- May 18, 2009 12:51:58 PM COT
-- Add missing sequences
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,53299,TO_DATE('2009-05-18 12:51:57','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'Table C_Charge_Trl',1,'Y','N','Y','Y','C_Charge_Trl','N',1000000,TO_DATE('2009-05-18 12:51:57','YYYY-MM-DD HH24:MI:SS'),100)
;
-- May 18, 2009 12:51:58 PM COT
-- Add missing sequences
UPDATE AD_Sequence s SET Name = (SELECT TableName FROM AD_Table t WHERE t.IsView='N' AND UPPER(s.Name)=UPPER(t.TableName)) WHERE s.IsTableID='Y' AND EXISTS (SELECT * FROM AD_Table t WHERE t.IsActive='Y' AND t.IsView='N' AND UPPER(s.Name)=UPPER(t.TableName) AND s.Name<>t.TableName)
;
-- May 18, 2009 12:52:01 PM COT
-- Add missing sequences
UPDATE AD_Sequence SET CurrentNextSys=50002,Updated=TO_DATE('2009-05-18 12:52:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Sequence_ID=53298
;
-- May 18, 2009 12:52:06 PM COT
-- Add missing sequences
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,53300,TO_DATE('2009-05-18 12:52:05','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'DocumentNo/Value for Table AD_ReplicationStrategy',1,'Y','N','Y','N','DocumentNo_AD_ReplicationStrategy','N',1000000,TO_DATE('2009-05-18 12:52:05','YYYY-MM-DD HH24:MI:SS'),100)
;
-- May 18, 2009 12:52:07 PM COT
-- Add missing sequences
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,53301,TO_DATE('2009-05-18 12:52:06','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'DocumentNo/Value for Table PP_Cost_Collector',1,'Y','N','Y','N','DocumentNo_PP_Cost_Collector','N',1000000,TO_DATE('2009-05-18 12:52:06','YYYY-MM-DD HH24:MI:SS'),100)
;
-- May 18, 2009 12:52:07 PM COT
-- Add missing sequences
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,53302,TO_DATE('2009-05-18 12:52:07','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'DocumentNo/Value for Table U_POSTerminal',1,'Y','N','Y','N','DocumentNo_U_POSTerminal','N',1000000,TO_DATE('2009-05-18 12:52:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- May 18, 2009 12:52:08 PM COT
-- Add missing sequences
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,53303,TO_DATE('2009-05-18 12:52:07','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'DocumentNo/Value for Table C_ChargeType',1,'Y','N','Y','N','DocumentNo_C_ChargeType','N',1000000,TO_DATE('2009-05-18 12:52:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- May 18, 2009 12:52:08 PM COT
-- Add missing sequences
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (11,0,53304,TO_DATE('2009-05-18 12:52:08','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'DocumentNo/Value for Table AD_ReplicationStrategy',1,'Y','N','Y','N','DocumentNo_AD_ReplicationStrategy','N',1000000,TO_DATE('2009-05-18 12:52:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- May 18, 2009 12:52:09 PM COT
-- Add missing sequences
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (11,0,53305,TO_DATE('2009-05-18 12:52:08','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'DocumentNo/Value for Table PP_Cost_Collector',1,'Y','N','Y','N','DocumentNo_PP_Cost_Collector','N',1000000,TO_DATE('2009-05-18 12:52:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- May 18, 2009 12:52:10 PM COT
-- Add missing sequences
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (11,0,53306,TO_DATE('2009-05-18 12:52:09','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'DocumentNo/Value for Table U_POSTerminal',1,'Y','N','Y','N','DocumentNo_U_POSTerminal','N',1000000,TO_DATE('2009-05-18 12:52:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- May 18, 2009 12:52:11 PM COT
-- Add missing sequences
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (11,0,53307,TO_DATE('2009-05-18 12:52:10','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'DocumentNo/Value for Table C_ChargeType',1,'Y','N','Y','N','DocumentNo_C_ChargeType','N',1000000,TO_DATE('2009-05-18 12:52:10','YYYY-MM-DD HH24:MI:SS'),100)
;

View File

@ -8,11 +8,6 @@ INSERT INTO AD_Table (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Table_ID,CopyColumns
INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=53169 AND EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Table_ID!=t.AD_Table_ID)
;
-- Feb 18, 2009 12:44:58 PM CET
-- Product Category QA - kthiemann@adempiere.org
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,1000325,TO_TIMESTAMP('2009-02-18 12:44:58','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'Table AD_SearchDefinition',1,'Y','N','Y','Y','AD_SearchDefinition','N',1000000,TO_TIMESTAMP('2009-02-18 12:44:58','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 18, 2009 12:47:51 PM CET
-- Product Category QA - kthiemann@adempiere.org
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56799,102,0,19,53169,'AD_Client_ID',TO_TIMESTAMP('2009-02-18 12:47:50','YYYY-MM-DD HH24:MI:SS'),100,'@#AD_Client_ID@','Client/Tenant for this installation.','D',22,'A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Y','Y','N','N','N','N','N','Y','N','N','N','N','N','Client',0,TO_TIMESTAMP('2009-02-18 12:47:50','YYYY-MM-DD HH24:MI:SS'),100,1.000000000000)
@ -336,31 +331,6 @@ UPDATE AD_Window_Access SET IsReadWrite='N',Updated=TO_TIMESTAMP('2009-02-18 13:
UPDATE AD_Window_Access SET IsReadWrite='N',Updated=TO_TIMESTAMP('2009-02-18 13:22:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=50002 AND AD_Window_ID=53069
;
-- Feb 18, 2009 1:22:45 PM CET
-- Product Category QA - kthiemann@adempiere.org
UPDATE AD_Window_Access SET IsReadWrite='N',Updated=TO_TIMESTAMP('2009-02-18 13:22:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=1000000 AND AD_Window_ID=53069
;
-- Feb 18, 2009 1:22:45 PM CET
-- Product Category QA - kthiemann@adempiere.org
UPDATE AD_Window_Access SET IsReadWrite='N',Updated=TO_TIMESTAMP('2009-02-18 13:22:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=1000001 AND AD_Window_ID=53069
;
-- Feb 18, 2009 1:22:47 PM CET
-- Product Category QA - kthiemann@adempiere.org
UPDATE AD_Window_Access SET IsActive='N', IsReadWrite='N',Updated=TO_TIMESTAMP('2009-02-18 13:22:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=1000023 AND AD_Window_ID=53069
;
-- Feb 18, 2009 1:22:48 PM CET
-- Product Category QA - kthiemann@adempiere.org
UPDATE AD_Window_Access SET IsActive='N',Updated=TO_TIMESTAMP('2009-02-18 13:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=1000001 AND AD_Window_ID=53069
;
-- Feb 18, 2009 1:22:49 PM CET
-- Product Category QA - kthiemann@adempiere.org
UPDATE AD_Window_Access SET IsActive='N',Updated=TO_TIMESTAMP('2009-02-18 13:22:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=1000000 AND AD_Window_ID=53069
;
-- Feb 18, 2009 1:22:50 PM CET
-- Product Category QA - kthiemann@adempiere.org
UPDATE AD_Window_Access SET IsActive='N',Updated=TO_TIMESTAMP('2009-02-18 13:22:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=50002 AND AD_Window_ID=53069
@ -760,11 +730,6 @@ UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE A
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- Feb 18, 2009 1:49:18 PM CET
-- Product Category QA - kthiemann@adempiere.org
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=1000000
;
-- Feb 18, 2009 1:49:18 PM CET
-- Product Category QA - kthiemann@adempiere.org
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53014

View File

@ -1,11 +1,11 @@
-- Feb 20, 2009 12:22:31 PM CET
-- Advanced Search
INSERT INTO AD_SearchDefinition (AD_Client_ID,AD_Column_ID,AD_Org_ID,AD_SearchDefinition_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,DataType,Description,IsActive,IsDefault,Name,PO_Window_ID,SearchType,TransactionCode,Updated,UpdatedBy) VALUES (0,2169,0,1000004,259,143,TO_TIMESTAMP('2009-02-20 12:22:31','YYYY-MM-DD HH24:MI:SS'),100,'S','Searches for an order with a fitting documentNo','Y','Y','Order Search',181,'T','O',TO_TIMESTAMP('2009-02-20 12:22:31','YYYY-MM-DD HH24:MI:SS'),100)
INSERT INTO AD_SearchDefinition (AD_Client_ID,AD_Column_ID,AD_Org_ID,AD_SearchDefinition_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,DataType,Description,IsActive,IsDefault,Name,PO_Window_ID,SearchType,TransactionCode,Updated,UpdatedBy) VALUES (0,2169,0,50000,259,143,TO_TIMESTAMP('2009-02-20 12:22:31','YYYY-MM-DD HH24:MI:SS'),100,'S','Searches for an order with a fitting documentNo','Y','Y','Order Search',181,'T','O',TO_TIMESTAMP('2009-02-20 12:22:31','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 20, 2009 12:26:12 PM CET
-- Advanced Search
INSERT INTO AD_SearchDefinition (AD_Client_ID,AD_Org_ID,AD_SearchDefinition_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,DataType,Description,IsActive,IsDefault,Name,Query,SearchType,TransactionCode,Updated,UpdatedBy) VALUES (0,0,1000005,291,123,TO_TIMESTAMP('2009-02-20 12:26:12','YYYY-MM-DD HH24:MI:SS'),100,'S','Searches for a Business Partner with fitting BPName or ContactName','Y','N','Business Partner Search','SELECT b.C_BPartner_ID FROM C_BPartner b
INSERT INTO AD_SearchDefinition (AD_Client_ID,AD_Org_ID,AD_SearchDefinition_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,DataType,Description,IsActive,IsDefault,Name,Query,SearchType,TransactionCode,Updated,UpdatedBy) VALUES (0,0,50001,291,123,TO_TIMESTAMP('2009-02-20 12:26:12','YYYY-MM-DD HH24:MI:SS'),100,'S','Searches for a Business Partner with fitting BPName or ContactName','Y','N','Business Partner Search','SELECT b.C_BPartner_ID FROM C_BPartner b
INNER JOIN AD_User u ON (b.C_BPartner_ID = u.C_BPartner_ID)
WHERE UPPER(b.name) LIKE UPPER(?) OR UPPER(u.name) LIKE UPPER(?)','Q','BP',TO_TIMESTAMP('2009-02-20 12:26:12','YYYY-MM-DD HH24:MI:SS'),100)
;

View File

@ -0,0 +1,60 @@
-- May 18, 2009 12:51:57 PM COT
-- Add missing sequences
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,53298,TO_TIMESTAMP('2009-05-18 12:51:53','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'Table AD_SearchDefinition',1,'Y','N','Y','Y','AD_SearchDefinition','N',1000000,TO_TIMESTAMP('2009-05-18 12:51:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- May 18, 2009 12:51:58 PM COT
-- Add missing sequences
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,53299,TO_TIMESTAMP('2009-05-18 12:51:57','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'Table C_Charge_Trl',1,'Y','N','Y','Y','C_Charge_Trl','N',1000000,TO_TIMESTAMP('2009-05-18 12:51:57','YYYY-MM-DD HH24:MI:SS'),100)
;
-- May 18, 2009 12:51:58 PM COT
-- Add missing sequences
UPDATE AD_Sequence SET Name = (SELECT TableName FROM AD_Table t WHERE t.IsView='N' AND UPPER(AD_Sequence.Name)=UPPER(t.TableName)) WHERE AD_Sequence.IsTableID='Y' AND EXISTS (SELECT * FROM AD_Table t WHERE t.IsActive='Y' AND t.IsView='N' AND UPPER(AD_Sequence.Name)=UPPER(t.TableName) AND AD_Sequence.Name<>t.TableName)
;
-- May 18, 2009 12:52:01 PM COT
-- Add missing sequences
UPDATE AD_Sequence SET CurrentNextSys=50002,Updated=TO_TIMESTAMP('2009-05-18 12:52:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Sequence_ID=53298
;
-- May 18, 2009 12:52:06 PM COT
-- Add missing sequences
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,53300,TO_TIMESTAMP('2009-05-18 12:52:05','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'DocumentNo/Value for Table AD_ReplicationStrategy',1,'Y','N','Y','N','DocumentNo_AD_ReplicationStrategy','N',1000000,TO_TIMESTAMP('2009-05-18 12:52:05','YYYY-MM-DD HH24:MI:SS'),100)
;
-- May 18, 2009 12:52:07 PM COT
-- Add missing sequences
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,53301,TO_TIMESTAMP('2009-05-18 12:52:06','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'DocumentNo/Value for Table PP_Cost_Collector',1,'Y','N','Y','N','DocumentNo_PP_Cost_Collector','N',1000000,TO_TIMESTAMP('2009-05-18 12:52:06','YYYY-MM-DD HH24:MI:SS'),100)
;
-- May 18, 2009 12:52:07 PM COT
-- Add missing sequences
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,53302,TO_TIMESTAMP('2009-05-18 12:52:07','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'DocumentNo/Value for Table U_POSTerminal',1,'Y','N','Y','N','DocumentNo_U_POSTerminal','N',1000000,TO_TIMESTAMP('2009-05-18 12:52:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- May 18, 2009 12:52:08 PM COT
-- Add missing sequences
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,53303,TO_TIMESTAMP('2009-05-18 12:52:07','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'DocumentNo/Value for Table C_ChargeType',1,'Y','N','Y','N','DocumentNo_C_ChargeType','N',1000000,TO_TIMESTAMP('2009-05-18 12:52:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- May 18, 2009 12:52:08 PM COT
-- Add missing sequences
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (11,0,53304,TO_TIMESTAMP('2009-05-18 12:52:08','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'DocumentNo/Value for Table AD_ReplicationStrategy',1,'Y','N','Y','N','DocumentNo_AD_ReplicationStrategy','N',1000000,TO_TIMESTAMP('2009-05-18 12:52:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- May 18, 2009 12:52:09 PM COT
-- Add missing sequences
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (11,0,53305,TO_TIMESTAMP('2009-05-18 12:52:08','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'DocumentNo/Value for Table PP_Cost_Collector',1,'Y','N','Y','N','DocumentNo_PP_Cost_Collector','N',1000000,TO_TIMESTAMP('2009-05-18 12:52:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- May 18, 2009 12:52:10 PM COT
-- Add missing sequences
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (11,0,53306,TO_TIMESTAMP('2009-05-18 12:52:09','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'DocumentNo/Value for Table U_POSTerminal',1,'Y','N','Y','N','DocumentNo_U_POSTerminal','N',1000000,TO_TIMESTAMP('2009-05-18 12:52:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- May 18, 2009 12:52:11 PM COT
-- Add missing sequences
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (11,0,53307,TO_TIMESTAMP('2009-05-18 12:52:10','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'DocumentNo/Value for Table C_ChargeType',1,'Y','N','Y','N','DocumentNo_C_ChargeType','N',1000000,TO_TIMESTAMP('2009-05-18 12:52:10','YYYY-MM-DD HH24:MI:SS'),100)
;