Fix problems in migration scripts with entity types

This commit is contained in:
Carlos Ruiz 2008-05-28 06:34:59 +00:00
parent ec6e81cef0
commit e30a0b39d3
3 changed files with 26 additions and 26 deletions

View File

@ -1,23 +1,23 @@
UPDATE AD_COLUMN SET entitytype = 'D' WHERE entitytype != 'D' AND ad_column_id < 1000000;
UPDATE AD_COLUMN SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND ad_column_id < 1000000;
UPDATE AD_ELEMENT SET entitytype = 'D' WHERE entitytype != 'D' AND AD_ELEMENT_id < 1000000;
UPDATE AD_ELEMENT SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND AD_ELEMENT_id < 1000000;
UPDATE AD_FIELD SET entitytype = 'D' WHERE entitytype != 'D' AND AD_FIELD_id < 1000000;
UPDATE AD_FIELD SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND AD_FIELD_id < 1000000;
UPDATE AD_MENU SET entitytype = 'D' WHERE entitytype != 'D' AND AD_MENU_id < 1000000;
UPDATE AD_MENU SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND AD_MENU_id < 1000000;
UPDATE AD_MESSAGE SET entitytype = 'D' WHERE entitytype != 'D' AND AD_MESSAGE_id < 1000000;
UPDATE AD_MESSAGE SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND AD_MESSAGE_id < 1000000;
UPDATE AD_PROCESS SET entitytype = 'D' WHERE entitytype != 'D' AND AD_PROCESS_id < 1000000;
UPDATE AD_PROCESS SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND AD_PROCESS_id < 1000000;
UPDATE AD_PROCESS_PARA SET entitytype = 'D' WHERE entitytype != 'D' AND AD_PROCESS_PARA_id < 1000000;
UPDATE AD_PROCESS_PARA SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND AD_PROCESS_PARA_id < 1000000;
UPDATE AD_REFERENCE SET entitytype = 'D' WHERE entitytype != 'D' AND AD_REFERENCE_id < 1000000;
UPDATE AD_REFERENCE SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND AD_REFERENCE_id < 1000000;
UPDATE AD_REF_LIST SET entitytype = 'D' WHERE entitytype != 'D' AND AD_REF_LIST_id < 1000000;
UPDATE AD_REF_LIST SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND AD_REF_LIST_id < 1000000;
UPDATE AD_TAB SET entitytype = 'D' WHERE entitytype != 'D' AND AD_TAB_id < 1000000;
UPDATE AD_TAB SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND AD_TAB_id < 1000000;
UPDATE AD_TABLE SET entitytype = 'D' WHERE entitytype != 'D' AND AD_TABLE_id < 1000000;
UPDATE AD_TABLE SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND AD_TABLE_id < 1000000;
UPDATE AD_WINDOW SET entitytype = 'D' WHERE entitytype != 'D' AND AD_WINDOW_id < 1000000;
UPDATE AD_WINDOW SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND AD_WINDOW_id < 1000000;

View File

@ -15204,7 +15204,7 @@ INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy
-- Mar 23, 2008 9:04:30 PM CST
-- Human Resource & Payroll
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,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,55031,2211,0,20,53102,'IsRegistered',TO_TIMESTAMP('2008-03-23 21:04:29','YYYY-MM-DD HH24:MI:SS'),100,'The application is registered.','TV01',1,'Y','N','N','N','N','N','N','N','Y','N','Y','Registered',TO_TIMESTAMP('2008-03-23 21:04:29','YYYY-MM-DD HH24:MI:SS'),100,0)
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,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,55031,2211,0,20,53102,'IsRegistered',TO_TIMESTAMP('2008-03-23 21:04:29','YYYY-MM-DD HH24:MI:SS'),100,'The application is registered.','EE02',1,'Y','N','N','N','N','N','N','N','Y','N','Y','Registered',TO_TIMESTAMP('2008-03-23 21:04:29','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Mar 23, 2008 9:04:30 PM CST
@ -15885,7 +15885,7 @@ INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTran
-- Mar 23, 2008 9:05:30 PM CST
-- Human Resource & Payroll
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SortNo,Updated,UpdatedBy) VALUES (0,55031,55186,0,53124,TO_TIMESTAMP('2008-03-23 21:05:29','YYYY-MM-DD HH24:MI:SS'),100,'The application is registered.',1,'TV01','Y','Y','Y','N','N','N','N','Registered',220,0,TO_TIMESTAMP('2008-03-23 21:05:29','YYYY-MM-DD HH24:MI:SS'),100)
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SortNo,Updated,UpdatedBy) VALUES (0,55031,55186,0,53124,TO_TIMESTAMP('2008-03-23 21:05:29','YYYY-MM-DD HH24:MI:SS'),100,'The application is registered.',1,'EE02','Y','Y','Y','N','N','N','N','Registered',220,0,TO_TIMESTAMP('2008-03-23 21:05:29','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Mar 23, 2008 9:05:30 PM CST

View File

@ -1,23 +1,23 @@
UPDATE AD_COLUMN SET entitytype = 'D' WHERE entitytype != 'D' AND ad_column_id < 1000000;
UPDATE AD_COLUMN SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND ad_column_id < 1000000;
UPDATE AD_ELEMENT SET entitytype = 'D' WHERE entitytype != 'D' AND AD_ELEMENT_id < 1000000;
UPDATE AD_ELEMENT SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND AD_ELEMENT_id < 1000000;
UPDATE AD_FIELD SET entitytype = 'D' WHERE entitytype != 'D' AND AD_FIELD_id < 1000000;
UPDATE AD_FIELD SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND AD_FIELD_id < 1000000;
UPDATE AD_MENU SET entitytype = 'D' WHERE entitytype != 'D' AND AD_MENU_id < 1000000;
UPDATE AD_MENU SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND AD_MENU_id < 1000000;
UPDATE AD_MESSAGE SET entitytype = 'D' WHERE entitytype != 'D' AND AD_MESSAGE_id < 1000000;
UPDATE AD_MESSAGE SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND AD_MESSAGE_id < 1000000;
UPDATE AD_PROCESS SET entitytype = 'D' WHERE entitytype != 'D' AND AD_PROCESS_id < 1000000;
UPDATE AD_PROCESS SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND AD_PROCESS_id < 1000000;
UPDATE AD_PROCESS_PARA SET entitytype = 'D' WHERE entitytype != 'D' AND AD_PROCESS_PARA_id < 1000000;
UPDATE AD_PROCESS_PARA SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND AD_PROCESS_PARA_id < 1000000;
UPDATE AD_REFERENCE SET entitytype = 'D' WHERE entitytype != 'D' AND AD_REFERENCE_id < 1000000;
UPDATE AD_REFERENCE SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND AD_REFERENCE_id < 1000000;
UPDATE AD_REF_LIST SET entitytype = 'D' WHERE entitytype != 'D' AND AD_REF_LIST_id < 1000000;
UPDATE AD_REF_LIST SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND AD_REF_LIST_id < 1000000;
UPDATE AD_TAB SET entitytype = 'D' WHERE entitytype != 'D' AND AD_TAB_id < 1000000;
UPDATE AD_TAB SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND AD_TAB_id < 1000000;
UPDATE AD_TABLE SET entitytype = 'D' WHERE entitytype != 'D' AND AD_TABLE_id < 1000000;
UPDATE AD_TABLE SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND AD_TABLE_id < 1000000;
UPDATE AD_WINDOW SET entitytype = 'D' WHERE entitytype != 'D' AND AD_WINDOW_id < 1000000;
UPDATE AD_WINDOW SET entitytype = 'D' WHERE entitytype IN ('A', 'U', 'C') AND AD_WINDOW_id < 1000000;