From d65c1b6e3fd21f9e136dd787b7e92132d7730285 Mon Sep 17 00:00:00 2001 From: trifonnt Date: Wed, 24 Mar 2010 14:30:45 +0000 Subject: [PATCH] -- FR [2975307] - AD_Menu_Trl overwritten by AD_Window -- https://sourceforge.net/tracker/index.php?func=detail&aid=2975307&group_id=176962&atid=879335 -- ADD IsCentrallyMaintained to AD_Table --- ...975307_AD_Table-AddCentrallyMaintained.sql | 49 +++++++++++++++++++ ...975307_AD_Table-AddCentrallyMaintained.sql | 49 +++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 migration/354a-trunk/oracle/692_FR2975307_AD_Table-AddCentrallyMaintained.sql create mode 100644 migration/354a-trunk/postgresql/692_FR2975307_AD_Table-AddCentrallyMaintained.sql diff --git a/migration/354a-trunk/oracle/692_FR2975307_AD_Table-AddCentrallyMaintained.sql b/migration/354a-trunk/oracle/692_FR2975307_AD_Table-AddCentrallyMaintained.sql new file mode 100644 index 0000000000..3bcc96977a --- /dev/null +++ b/migration/354a-trunk/oracle/692_FR2975307_AD_Table-AddCentrallyMaintained.sql @@ -0,0 +1,49 @@ +-- Mar 24, 2010 3:14:09 PM CET +-- FR [2975307] - AD_Menu_Trl overwritten by AD_Window +-- https://sourceforge.net/tracker/index.php?func=detail&aid=2975307&group_id=176962&atid=879335 +-- ADD IsCentrallyMaintained to AD_Table +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,59135,362,0,20,100,'IsCentrallyMaintained',TO_DATE('2010-03-24 15:14:07','YYYY-MM-DD HH24:MI:SS'),100,'Y','Information maintained in System Element table','D',1,'The Centrally Maintained checkbox indicates if the Name, Description and Help maintained in ''System Element'' table or ''Window'' table.','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Centrally maintained',0,TO_DATE('2010-03-24 15:14:07','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Mar 24, 2010 3:14:09 PM CET +-- FR [2975307] - AD_Menu_Trl overwritten by AD_Window +-- https://sourceforge.net/tracker/index.php?func=detail&aid=2975307&group_id=176962&atid=879335 +-- ADD IsCentrallyMaintained to AD_Table +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_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_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=59135 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 24, 2010 3:14:19 PM CET +-- FR [2975307] - AD_Menu_Trl overwritten by AD_Window +-- https://sourceforge.net/tracker/index.php?func=detail&aid=2975307&group_id=176962&atid=879335 +-- ADD IsCentrallyMaintained to AD_Table +ALTER TABLE AD_Table ADD IsCentrallyMaintained CHAR(1) DEFAULT 'Y' CHECK (IsCentrallyMaintained IN ('Y','N')) +; + +-- Mar 24, 2010 3:15:47 PM CET +-- FR [2975307] - AD_Menu_Trl overwritten by AD_Window +-- https://sourceforge.net/tracker/index.php?func=detail&aid=2975307&group_id=176962&atid=879335 +-- ADD IsCentrallyMaintained to AD_Table +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SortNo,Updated,UpdatedBy) VALUES (0,59135,58844,0,100,TO_DATE('2010-03-24 15:15:46','YYYY-MM-DD HH24:MI:SS'),100,'Information maintained in System Element table',0,'D','The Centrally Maintained checkbox indicates if the Name, Description and Help maintained in ''System Element'' table or ''Window'' table.','Y','Y','Y','N','N','N','N','Y','Centrally maintained',180,0,TO_DATE('2010-03-24 15:15:46','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Mar 24, 2010 3:15:47 PM CET +-- FR [2975307] - AD_Menu_Trl overwritten by AD_Window +-- https://sourceforge.net/tracker/index.php?func=detail&aid=2975307&group_id=176962&atid=879335 +-- ADD IsCentrallyMaintained to AD_Table +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=58844 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Mar 24, 2010 3:16:46 PM CET +-- FR [2975307] - AD_Menu_Trl overwritten by AD_Window +-- https://sourceforge.net/tracker/index.php?func=detail&aid=2975307&group_id=176962&atid=879335 +-- ADD IsCentrallyMaintained to AD_Table +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=50157 +; + +-- Mar 24, 2010 3:16:46 PM CET +-- FR [2975307] - AD_Menu_Trl overwritten by AD_Window +-- https://sourceforge.net/tracker/index.php?func=detail&aid=2975307&group_id=176962&atid=879335 +-- ADD IsCentrallyMaintained to AD_Table +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=58844 +; + diff --git a/migration/354a-trunk/postgresql/692_FR2975307_AD_Table-AddCentrallyMaintained.sql b/migration/354a-trunk/postgresql/692_FR2975307_AD_Table-AddCentrallyMaintained.sql new file mode 100644 index 0000000000..eb060bdf65 --- /dev/null +++ b/migration/354a-trunk/postgresql/692_FR2975307_AD_Table-AddCentrallyMaintained.sql @@ -0,0 +1,49 @@ +-- Mar 24, 2010 3:14:09 PM CET +-- FR [2975307] - AD_Menu_Trl overwritten by AD_Window +-- https://sourceforge.net/tracker/index.php?func=detail&aid=2975307&group_id=176962&atid=879335 +-- ADD IsCentrallyMaintained to AD_Table +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,59135,362,0,20,100,'IsCentrallyMaintained',TO_TIMESTAMP('2010-03-24 15:14:07','YYYY-MM-DD HH24:MI:SS'),100,'Y','Information maintained in System Element table','D',1,'The Centrally Maintained checkbox indicates if the Name, Description and Help maintained in ''System Element'' table or ''Window'' table.','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Centrally maintained',0,TO_TIMESTAMP('2010-03-24 15:14:07','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Mar 24, 2010 3:14:09 PM CET +-- FR [2975307] - AD_Menu_Trl overwritten by AD_Window +-- https://sourceforge.net/tracker/index.php?func=detail&aid=2975307&group_id=176962&atid=879335 +-- ADD IsCentrallyMaintained to AD_Table +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_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_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=59135 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 24, 2010 3:14:19 PM CET +-- FR [2975307] - AD_Menu_Trl overwritten by AD_Window +-- https://sourceforge.net/tracker/index.php?func=detail&aid=2975307&group_id=176962&atid=879335 +-- ADD IsCentrallyMaintained to AD_Table +ALTER TABLE AD_Table ADD COLUMN IsCentrallyMaintained CHAR(1) DEFAULT 'Y' CHECK (IsCentrallyMaintained IN ('Y','N')) +; + +-- Mar 24, 2010 3:15:47 PM CET +-- FR [2975307] - AD_Menu_Trl overwritten by AD_Window +-- https://sourceforge.net/tracker/index.php?func=detail&aid=2975307&group_id=176962&atid=879335 +-- ADD IsCentrallyMaintained to AD_Table +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SortNo,Updated,UpdatedBy) VALUES (0,59135,58844,0,100,TO_TIMESTAMP('2010-03-24 15:15:46','YYYY-MM-DD HH24:MI:SS'),100,'Information maintained in System Element table',0,'D','The Centrally Maintained checkbox indicates if the Name, Description and Help maintained in ''System Element'' table or ''Window'' table.','Y','Y','Y','N','N','N','N','Y','Centrally maintained',180,0,TO_TIMESTAMP('2010-03-24 15:15:46','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Mar 24, 2010 3:15:47 PM CET +-- FR [2975307] - AD_Menu_Trl overwritten by AD_Window +-- https://sourceforge.net/tracker/index.php?func=detail&aid=2975307&group_id=176962&atid=879335 +-- ADD IsCentrallyMaintained to AD_Table +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=58844 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Mar 24, 2010 3:16:46 PM CET +-- FR [2975307] - AD_Menu_Trl overwritten by AD_Window +-- https://sourceforge.net/tracker/index.php?func=detail&aid=2975307&group_id=176962&atid=879335 +-- ADD IsCentrallyMaintained to AD_Table +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=50157 +; + +-- Mar 24, 2010 3:16:46 PM CET +-- FR [2975307] - AD_Menu_Trl overwritten by AD_Window +-- https://sourceforge.net/tracker/index.php?func=detail&aid=2975307&group_id=176962&atid=879335 +-- ADD IsCentrallyMaintained to AD_Table +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=58844 +; +