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 IN ('A', 'U', 'C') AND AD_ELEMENT_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 IN ('A', 'U', 'C') AND AD_MENU_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 IN ('A', 'U', 'C') AND AD_PROCESS_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 IN ('A', 'U', 'C') AND AD_REFERENCE_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 IN ('A', 'U', 'C') AND AD_TAB_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 IN ('A', 'U', 'C') AND AD_WINDOW_id < 1000000;