Made all varchar -> varchar(999)

Made all varchar -> varchar(999)

--- src/pg_demo/table_defs.clj
+++ src/pg_demo/table_defs.clj
@@ -14,8 +14,8 @@
               ENTERPRISE_ID numeric NOT NULL,
               COHORT_ID numeric NOT NULL,
               STUDY_KEY numeric NOT NULL,
-              BLIND_NAME varchar(70),
-              BLIND_NAME_J varchar(70),
+              BLIND_NAME varchar(999),
+              BLIND_NAME_J varchar(999),
               STUDY_TYPE_ID numeric NOT NULL,
               SORT_ID numeric NOT NULL,
               primary_val numeric NOT NULL,
@@ -27,7 +27,7 @@
           "CREATE TABLE rm_case_master (
               ENTERPRISE_ID numeric NOT NULL,
               CASE_ID numeric NOT NULL,
-              CASE_NUM varchar(20),
+              CASE_NUM varchar(999),
               REV numeric,
               WORKFLOW_SEQ_NUM numeric,
               LAST_WORKFLOW_SEQ_NUM numeric,
@@ -49,7 +49,7 @@
               LAST_STATE_ID numeric,
               ASSESSMENT_NEEDED numeric,
               PRIORITY_OVERRIDE numeric(1),
-              SID varchar(128),
+              SID varchar(999),
               SAFETY_DATE timestamp,
               NORMAL_TIME timestamp,
               MAX_TIME timestamp,
@@ -57,20 +57,20 @@
               PRIORITY_ASSESSMENT numeric,
               CLOSE_USER_ID numeric,
               CLOSE_DATE timestamp,
-              CLOSE_NOTES varchar(200),
+              CLOSE_NOTES varchar(999),
               DATE_LOCKED timestamp,
-              UD_TEXT_1 varchar(100),
-              UD_TEXT_2 varchar(100),
-              UD_TEXT_3 varchar(100),
-              UD_TEXT_4 varchar(100),
-              UD_TEXT_5 varchar(100),
-              UD_TEXT_6 varchar(100),
-              UD_TEXT_7 varchar(100),
-              UD_TEXT_8 varchar(100),
-              UD_TEXT_9 varchar(100),
-              UD_TEXT_10 varchar(100),
-              UD_TEXT_11 varchar(100),
-              UD_TEXT_12 varchar(100),
+              UD_TEXT_1 varchar(999),
+              UD_TEXT_2 varchar(999),
+              UD_TEXT_3 varchar(999),
+              UD_TEXT_4 varchar(999),
+              UD_TEXT_5 varchar(999),
+              UD_TEXT_6 varchar(999),
+              UD_TEXT_7 varchar(999),
+              UD_TEXT_8 varchar(999),
+              UD_TEXT_9 varchar(999),
+              UD_TEXT_10 varchar(999),
+              UD_TEXT_11 varchar(999),
+              UD_TEXT_12 varchar(999),
               UD_DATE_1 timestamp,
               UD_DATE_2 timestamp,
               UD_DATE_3 timestamp,
@@ -97,32 +97,32 @@
               UD_NUMBER_12 numeric(30,10),
               DELETED timestamp,
               DUE_SOON timestamp,
-              GLOBAL_NUM varchar(20),
+              GLOBAL_NUM varchar(999),
               PRIORITY_DATE_ASSESSED timestamp,
               LAM_ASSESS_DONE numeric(1),
-              E2B_WW_NUMBER varchar(100),
+              E2B_WW_NUMBER varchar(999),
               WORKLIST_OWNER_ID numeric,
               SUSAR numeric,
               LAST_UPDATE_EVENT timestamp,
-              INITIAL_JUSTIFICATION varchar(1000),
+              INITIAL_JUSTIFICATION varchar(999),
               FORCE_SOON timestamp,
               DUE_SOON_J timestamp,
               FOLLOWUP_DATE_J timestamp,
               INIT_REPT_DATE_J timestamp,
-              JUST_INIT_REPT_DATE_J varchar(1000),
-              UD_TEXT_1_J varchar(100),
-              UD_TEXT_2_J varchar(100),
-              UD_TEXT_3_J varchar(100),
-              UD_TEXT_4_J varchar(100),
-              UD_TEXT_5_J varchar(100),
-              UD_TEXT_6_J varchar(100),
-              UD_TEXT_7_J varchar(100),
-              UD_TEXT_8_J varchar(100),
-              UD_TEXT_9_J varchar(100),
-              UD_TEXT_10_J varchar(100),
-              UD_TEXT_11_J varchar(100),
-              UD_TEXT_12_J varchar(100),
-              INITIAL_JUSTIFICATION_J varchar(1000),
+              JUST_INIT_REPT_DATE_J varchar(999),
+              UD_TEXT_1_J varchar(999),
+              UD_TEXT_2_J varchar(999),
+              UD_TEXT_3_J varchar(999),
+              UD_TEXT_4_J varchar(999),
+              UD_TEXT_5_J varchar(999),
+              UD_TEXT_6_J varchar(999),
+              UD_TEXT_7_J varchar(999),
+              UD_TEXT_8_J varchar(999),
+              UD_TEXT_9_J varchar(999),
+              UD_TEXT_10_J varchar(999),
+              UD_TEXT_11_J varchar(999),
+              UD_TEXT_12_J varchar(999),
+              INITIAL_JUSTIFICATION_J varchar(999),
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
               DELETED_FLAG numeric(1) NOT NULL,
@@ -140,13 +140,13 @@
               DATE_OPEN timestamp,
               DATE_DUE timestamp,
               DATE_DONE timestamp,
-              DESCRIPTION varchar(1000),
+              DESCRIPTION varchar(999),
               SORT_ID numeric,
               CODE numeric,
               GROUP_ID numeric,
               SYSTEM_CREATED numeric,
               ACTION_STATUS numeric,
-              DESCRIPTION_J varchar(1000),
+              DESCRIPTION_J varchar(999),
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
@@ -167,7 +167,7 @@
               TERM_STUDY_PROTOCOL numeric(1),
               TERM_PRODUCT_DEV numeric(1),
               OTHER numeric(1),
-              OTHER_DESC varchar(50),
+              OTHER_DESC varchar(999),
               FUTURE_ACTIONS varchar(999),
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
@@ -203,36 +203,36 @@
               COMMENT_ID numeric,
               COMP_COMMENT_ID numeric,
               SERIOUSNESS numeric,
-              SERIOUS_NOTES varchar(1000),
+              SERIOUS_NOTES varchar(999),
               AGENT_SUSPECT numeric,
-              AGENT_NOTES varchar(1000),
-              LISTEDNESS_NOTES varchar(1000),
+              AGENT_NOTES varchar(999),
+              LISTEDNESS_NOTES varchar(999),
               BFARM_CAUSALITY numeric(10),
               BFARM_MANUAL_TEXT varchar(999),
-              COMPANY_DIAGNOSIS varchar(250),
-              COMPANY_DIAGNOSIS_NOTES varchar(1000),
+              COMPANY_DIAGNOSIS varchar(999),
+              COMPANY_DIAGNOSIS_NOTES varchar(999),
               DIAGNOSIS_DICT_ID numeric,
-              DIAGNOSIS_PREF_CODE varchar(30),
-              DIAGNOSIS_INC_CODE varchar(30),
-              DIAGNOSIS_INC_TERM varchar(250),
-              DIAGNOSIS_HLGT_CODE varchar(30),
-              DIAGNOSIS_HLGT varchar(250),
-              DIAGNOSIS_HLT_CODE varchar(30),
-              DIAGNOSIS_HLT varchar(250),
-              DIAGNOSIS_SOC_CODE varchar(30),
-              DIAGNOSIS_BODY_SYS varchar(250),
-              UD_TEXT_1 varchar(100),
-              UD_TEXT_2 varchar(100),
-              UD_TEXT_3 varchar(100),
-              UD_TEXT_4 varchar(100),
-              UD_TEXT_5 varchar(100),
-              UD_TEXT_6 varchar(100),
-              UD_TEXT_7 varchar(100),
-              UD_TEXT_8 varchar(100),
-              UD_TEXT_9 varchar(100),
-              UD_TEXT_10 varchar(100),
-              UD_TEXT_11 varchar(100),
-              UD_TEXT_12 varchar(100),
+              DIAGNOSIS_PREF_CODE varchar(999),
+              DIAGNOSIS_INC_CODE varchar(999),
+              DIAGNOSIS_INC_TERM varchar(999),
+              DIAGNOSIS_HLGT_CODE varchar(999),
+              DIAGNOSIS_HLGT varchar(999),
+              DIAGNOSIS_HLT_CODE varchar(999),
+              DIAGNOSIS_HLT varchar(999),
+              DIAGNOSIS_SOC_CODE varchar(999),
+              DIAGNOSIS_BODY_SYS varchar(999),
+              UD_TEXT_1 varchar(999),
+              UD_TEXT_2 varchar(999),
+              UD_TEXT_3 varchar(999),
+              UD_TEXT_4 varchar(999),
+              UD_TEXT_5 varchar(999),
+              UD_TEXT_6 varchar(999),
+              UD_TEXT_7 varchar(999),
+              UD_TEXT_8 varchar(999),
+              UD_TEXT_9 varchar(999),
+              UD_TEXT_10 varchar(999),
+              UD_TEXT_11 varchar(999),
+              UD_TEXT_12 varchar(999),
               UD_DATE_1 timestamp,
               UD_DATE_2 timestamp,
               UD_DATE_3 timestamp,
@@ -260,38 +260,38 @@
               EVALUATION varchar(999),
               EVALUATION_J varchar(999),
               CO_SUSPECT_COUNT numeric(3),
-              EVENT_SYNOPSIS varchar(5),
-              EVENT_PRIMARY varchar(400),
-              DIAGNOSIS_REPTD varchar(255),
-              DIAGNOSIS_CODED varchar(255),
+              EVENT_SYNOPSIS varchar(999),
+              EVENT_PRIMARY varchar(999),
+              DIAGNOSIS_REPTD varchar(999),
+              DIAGNOSIS_CODED varchar(999),
               DIAGNOSIS_SYN_CODE numeric,
               DIAGNOSIS_CODE_STATUS numeric(3),
-              EVENT_PRIMARY_J varchar(400),
-              AGENT_NOTES_J varchar(1000),
-              COMPANY_DIAGNOSIS_J varchar(250),
-              COMPANY_DIAGNOSIS_NOTES_J varchar(1000),
-              DIAGNOSIS_BODY_SYS_J varchar(250),
-              DIAGNOSIS_CODED_J varchar(255),
+              EVENT_PRIMARY_J varchar(999),
+              AGENT_NOTES_J varchar(999),
+              COMPANY_DIAGNOSIS_J varchar(999),
+              COMPANY_DIAGNOSIS_NOTES_J varchar(999),
+              DIAGNOSIS_BODY_SYS_J varchar(999),
+              DIAGNOSIS_CODED_J varchar(999),
               DIAGNOSIS_CODE_STATUS_J numeric,
-              DIAGNOSIS_HLGT_J varchar(250),
-              DIAGNOSIS_HLT_J varchar(250),
-              DIAGNOSIS_INC_CODE_J varchar(30),
-              DIAGNOSIS_INC_TERM_J varchar(250),
-              DIAGNOSIS_REPTD_J varchar(255),
-              LISTEDNESS_NOTES_J varchar(1000),
-              SERIOUS_NOTES_J varchar(1000),
-              UD_TEXT_1_J varchar(100),
-              UD_TEXT_2_J varchar(100),
-              UD_TEXT_3_J varchar(100),
-              UD_TEXT_4_J varchar(100),
-              UD_TEXT_5_J varchar(100),
-              UD_TEXT_6_J varchar(100),
-              UD_TEXT_7_J varchar(100),
-              UD_TEXT_8_J varchar(100),
-              UD_TEXT_9_J varchar(100),
-              UD_TEXT_10_J varchar(100),
-              UD_TEXT_11_J varchar(100),
-              UD_TEXT_12_J varchar(100),
+              DIAGNOSIS_HLGT_J varchar(999),
+              DIAGNOSIS_HLT_J varchar(999),
+              DIAGNOSIS_INC_CODE_J varchar(999),
+              DIAGNOSIS_INC_TERM_J varchar(999),
+              DIAGNOSIS_REPTD_J varchar(999),
+              LISTEDNESS_NOTES_J varchar(999),
+              SERIOUS_NOTES_J varchar(999),
+              UD_TEXT_1_J varchar(999),
+              UD_TEXT_2_J varchar(999),
+              UD_TEXT_3_J varchar(999),
+              UD_TEXT_4_J varchar(999),
+              UD_TEXT_5_J varchar(999),
+              UD_TEXT_6_J varchar(999),
+              UD_TEXT_7_J varchar(999),
+              UD_TEXT_8_J varchar(999),
+              UD_TEXT_9_J varchar(999),
+              UD_TEXT_10_J varchar(999),
+              UD_TEXT_11_J varchar(999),
+              UD_TEXT_12_J varchar(999),
               DIAGNOSIS_SYN_CODE_J numeric,
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
@@ -308,7 +308,7 @@
               CASE_ID numeric NOT NULL,
               MED_STATUS_ID numeric NOT NULL,
               MED_STATUS numeric,
-              OTHER_TEXT varchar(20),
+              OTHER_TEXT varchar(999),
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
               EFFECTIVE_START_DATE timestamp NOT NULL,
@@ -370,7 +370,7 @@
               SEQ_NUM numeric NOT NULL,
               CONTACT_DATE timestamp,
               CONTACT_TYPE numeric,
-              DESCRIPTION varchar(1000),
+              DESCRIPTION varchar(999),
               USER_ID numeric,
               DATE_SENT timestamp,
               SORT_ID numeric,
@@ -378,7 +378,7 @@
               GROUP_ID numeric,
               LAM_ID numeric(10),
               LAM_CONTACT_LOG_ID numeric(10),
-              DESCRIPTION_J varchar(1000),
+              DESCRIPTION_J varchar(999),
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
               EFFECTIVE_START_DATE timestamp NOT NULL,
@@ -395,8 +395,8 @@
               DEATH_DATE timestamp,
               AUTOPSY numeric,
               DEATH_DATE_RES numeric,
-              DEATH_DATE_PARTIAL varchar(20),
-              DETERMINE_AUTOPSY varchar(250),
+              DEATH_DATE_PARTIAL varchar(999),
+              DETERMINE_AUTOPSY varchar(999),
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
@@ -413,30 +413,30 @@
               SEQ_NUM numeric NOT NULL,
               SORT_ID numeric,
               TERM_TYPE numeric,
-              CAUSE_REPTD varchar(1000),
-              CAUSE_CODED varchar(1000),
-              CAUSE varchar(1000),
-              CAUSE_CODE varchar(50),
-              CAUSE_LLT varchar(250),
-              CAUSE_LLT_CODE varchar(50),
-              CAUSE_HLT varchar(250),
-              CAUSE_HLT_CODE varchar(50),
-              CAUSE_HLGT varchar(250),
-              CAUSE_HLGT_CODE varchar(50),
-              CAUSE_SOC varchar(250),
-              CAUSE_SOC_CODE varchar(50),
+              CAUSE_REPTD varchar(999),
+              CAUSE_CODED varchar(999),
+              CAUSE varchar(999),
+              CAUSE_CODE varchar(999),
+              CAUSE_LLT varchar(999),
+              CAUSE_LLT_CODE varchar(999),
+              CAUSE_HLT varchar(999),
+              CAUSE_HLT_CODE varchar(999),
+              CAUSE_HLGT varchar(999),
+              CAUSE_HLGT_CODE varchar(999),
+              CAUSE_SOC varchar(999),
+              CAUSE_SOC_CODE varchar(999),
               CAUSE_SYN_CODE numeric,
               CAUSE_DICT numeric,
               CAUSE_CODE_STATUS numeric(3),
-              CAUSE_CODED_J varchar(1000),
-              CAUSE_SOC_J varchar(250),
+              CAUSE_CODED_J varchar(999),
+              CAUSE_SOC_J varchar(999),
               CAUSE_CODE_STATUS_J numeric,
-              CAUSE_HLGT_J varchar(250),
-              CAUSE_HLT_J varchar(250),
-              CAUSE_J varchar(1000),
-              CAUSE_LLT_CODE_J varchar(50),
-              CAUSE_LLT_J varchar(250),
-              CAUSE_REPTD_J varchar(1000),
+              CAUSE_HLGT_J varchar(999),
+              CAUSE_HLT_J varchar(999),
+              CAUSE_J varchar(999),
+              CAUSE_LLT_CODE_J varchar(999),
+              CAUSE_LLT_J varchar(999),
+              CAUSE_REPTD_J varchar(999),
               CAUSE_SYN_CODE_J numeric,
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
@@ -456,8 +456,8 @@
               PROD_DELIV_SEQ numeric,
               DELETED timestamp,
               TYPE numeric,
-              OTHER_MFG_PROD varchar(100),
-              OTHER_MFG_PROD_J varchar(100),
+              OTHER_MFG_PROD varchar(999),
+              OTHER_MFG_PROD_J varchar(999),
               DLP_REVISION_NUMBER numeric NOT NULL,
               EFFECTIVE_START_DATE timestamp NOT NULL,
               EFFECTIVE_END_DATE timestamp NOT NULL,
@@ -493,30 +493,30 @@
               LOCATION_ID numeric,
               DOSE_NO numeric,
               PAR_ADMIN_ROUTE numeric,
-              EXP_DATE_PARTIAL varchar(20),
-              START_DATE_PARTIAL varchar(20),
-              STOP_DATE_PARTIAL varchar(20),
-              DOSE_DESCRIPTION varchar(100),
-              PACKAGE_ID varchar(20),
-              LOT_NO varchar(35),
+              EXP_DATE_PARTIAL varchar(999),
+              START_DATE_PARTIAL varchar(999),
+              STOP_DATE_PARTIAL varchar(999),
+              DOSE_DESCRIPTION varchar(999),
+              PACKAGE_ID varchar(999),
+              LOT_NO varchar(999),
               PACK_UNITS numeric,
               ACCIDENTAL_EXPOSURE numeric,
               DELETED timestamp,
               LOT_ID numeric,
-              LOT_JUST varchar(1000),
+              LOT_JUST varchar(999),
               LOT_STATUS numeric(1),
-              UD_TEXT_1 varchar(100),
-              UD_TEXT_2 varchar(100),
-              UD_TEXT_3 varchar(100),
-              UD_TEXT_4 varchar(100),
-              UD_TEXT_5 varchar(100),
-              UD_TEXT_6 varchar(100),
-              UD_TEXT_7 varchar(100),
-              UD_TEXT_8 varchar(100),
-              UD_TEXT_9 varchar(100),
-              UD_TEXT_10 varchar(100),
-              UD_TEXT_11 varchar(100),
-              UD_TEXT_12 varchar(100),
+              UD_TEXT_1 varchar(999),
+              UD_TEXT_2 varchar(999),
+              UD_TEXT_3 varchar(999),
+              UD_TEXT_4 varchar(999),
+              UD_TEXT_5 varchar(999),
+              UD_TEXT_6 varchar(999),
+              UD_TEXT_7 varchar(999),
+              UD_TEXT_8 varchar(999),
+              UD_TEXT_9 varchar(999),
+              UD_TEXT_10 varchar(999),
+              UD_TEXT_11 varchar(999),
+              UD_TEXT_12 varchar(999),
               UD_DATE_1 timestamp,
               UD_DATE_2 timestamp,
               UD_DATE_3 timestamp,
@@ -542,20 +542,20 @@
               UD_NUMBER_11 numeric(30,10),
               UD_NUMBER_12 numeric(30,10),
               DURATION_SECONDS numeric,
-              DOSE_DESCRIPTION_J varchar(100),
-              UD_TEXT_1_J varchar(100),
-              UD_TEXT_2_J varchar(100),
-              UD_TEXT_3_J varchar(100),
-              UD_TEXT_4_J varchar(100),
-              UD_TEXT_5_J varchar(100),
-              UD_TEXT_6_J varchar(100),
-              UD_TEXT_7_J varchar(100),
-              UD_TEXT_8_J varchar(100),
-              UD_TEXT_9_J varchar(100),
-              UD_TEXT_10_J varchar(100),
-              UD_TEXT_11_J varchar(100),
-              UD_TEXT_12_J varchar(100),
-              LOT_JUST_J varchar(1000),
+              DOSE_DESCRIPTION_J varchar(999),
+              UD_TEXT_1_J varchar(999),
+              UD_TEXT_2_J varchar(999),
+              UD_TEXT_3_J varchar(999),
+              UD_TEXT_4_J varchar(999),
+              UD_TEXT_5_J varchar(999),
+              UD_TEXT_6_J varchar(999),
+              UD_TEXT_7_J varchar(999),
+              UD_TEXT_8_J varchar(999),
+              UD_TEXT_9_J varchar(999),
+              UD_TEXT_10_J varchar(999),
+              UD_TEXT_11_J varchar(999),
+              UD_TEXT_12_J varchar(999),
+              LOT_JUST_J varchar(999),
               DLP_REVISION_NUMBER numeric NOT NULL,
               LAST_UPDATE_TIME timestamp,
               REVISION_DELETE_FLAG numeric,
@@ -571,15 +571,15 @@
           "CREATE TABLE rm_case_eu_device (
               ENTERPRISE_ID numeric NOT NULL,
               CASE_ID numeric NOT NULL,
-              ACCESSORIES varchar(90),
-              VERSION varchar(40),
-              IDENTIFICATION varchar(90),
+              ACCESSORIES varchar(999),
+              VERSION varchar(999),
+              IDENTIFICATION varchar(999),
               PREVIOUSLY_REPORTED numeric,
               INCIDENT numeric,
-              COUNTRY varchar(1000),
+              COUNTRY varchar(999),
               EXPECTED_DATE timestamp,
               EXPECTED_DATE_RES numeric,
-              EXPECTED_DATE_PARTIAL varchar(20),
+              EXPECTED_DATE_PARTIAL varchar(999),
               PROJECTED_TIMING varchar(999),
               PROJECTED_TIMING_FINAL varchar(999),
               CORRECTIVE_ACTION_FINAL varchar(999),
@@ -589,24 +589,24 @@
               COUNTRIES_OF_DISTRIBUTION varchar(999),
               DELETED timestamp,
               CORRECTIVE_ACTION varchar(999),
-              DEVICE_PURCHASED varchar(120),
-              ADDRESS varchar(120),
+              DEVICE_PURCHASED varchar(999),
+              ADDRESS varchar(999),
               DEVICE_STERILE numeric(1),
-              IMPORTER_NAME varchar(100),
-              IMPORTER_ADDRESS varchar(120),
-              IMPORTER_POSTCODE varchar(15),
-              IMPORTER_PHONE varchar(20),
-              IMPORTER_FAX varchar(50),
+              IMPORTER_NAME varchar(999),
+              IMPORTER_ADDRESS varchar(999),
+              IMPORTER_POSTCODE varchar(999),
+              IMPORTER_PHONE varchar(999),
+              IMPORTER_FAX varchar(999),
               SEQ_NUM numeric NOT NULL,
               PROD_SEQ_NUM numeric,
-              NCA_REF_NUM varchar(100),
+              NCA_REF_NUM varchar(999),
               INDENTIF varchar(999),
               PATS_INVOLVED numeric,
               DEVS_INVOLVED numeric,
-              USER_FAC_REF varchar(20),
-              REMEDIAL_ACTION varchar(1000),
+              USER_FAC_REF varchar(999),
+              REMEDIAL_ACTION varchar(999),
               DEV_USAGE numeric,
-              OTHER varchar(15),
+              OTHER varchar(999),
               UPDATE_TO_REPORT numeric(1),
               FINAL_REPORT numeric(1),
               PUBLIC_THREAT numeric,
@@ -625,16 +625,16 @@
               ENTERPRISE_ID numeric NOT NULL,
               CASE_ID numeric NOT NULL,
               SEQ_NUM numeric NOT NULL,
-              DESC_REPTD varchar(250),
-              DESC_CODED varchar(255),
+              DESC_REPTD varchar(999),
+              DESC_CODED varchar(999),
               DIAGNOSIS numeric,
               ONSET timestamp,
               ONSET_RES numeric,
-              ONSET_DELAY varchar(40),
+              ONSET_DELAY varchar(999),
               STOP_DATE timestamp,
               STOP_DATE_RES numeric,
-              DURATION varchar(40),
-              ONSET_LATENCY varchar(40),
+              DURATION varchar(999),
+              ONSET_LATENCY varchar(999),
               EVT_INTENSITY_ID numeric,
               EVT_FREQ_ID numeric,
               TREATED numeric,
@@ -651,44 +651,44 @@
               SC_DISABLE numeric,
               SC_INT_REQ numeric,
               SC_OTHER numeric,
-              SC_OTHER_TEXT varchar(30),
-              ART_CODE varchar(30),
-              PREF_TERM varchar(250),
-              INC_TERM varchar(250),
-              BODY_SYS varchar(250),
+              SC_OTHER_TEXT varchar(999),
+              ART_CODE varchar(999),
+              PREF_TERM varchar(999),
+              INC_TERM varchar(999),
+              BODY_SYS varchar(999),
               MED_SERIOUS numeric,
               PAST_HIST numeric,
               DICT_ID numeric,
-              DICT_KEY varchar(20),
+              DICT_KEY varchar(999),
               CODE_STATUS numeric,
               SERIOUSNESS numeric,
               SORT_ID numeric,
-              ONSET_DATE_PARTIAL varchar(20),
-              STOP_DATE_PARTIAL varchar(20),
+              ONSET_DATE_PARTIAL varchar(999),
+              STOP_DATE_PARTIAL varchar(999),
               EFFICACY numeric,
               DISEASE numeric,
               WITHDRAWAL numeric,
-              HLGT varchar(250),
-              HLT varchar(250),
-              HLT_CODE varchar(30),
-              HLGT_CODE varchar(30),
-              SOC_CODE varchar(30),
+              HLGT varchar(999),
+              HLT varchar(999),
+              HLT_CODE varchar(999),
+              HLGT_CODE varchar(999),
+              SOC_CODE varchar(999),
               STUDY_DROPPED numeric(4),
-              INC_CODE varchar(30),
+              INC_CODE varchar(999),
               ONSET_MINUTES numeric,
               DELAY_MINUTES numeric,
-              UD_TEXT_1 varchar(100),
-              UD_TEXT_2 varchar(100),
-              UD_TEXT_3 varchar(100),
-              UD_TEXT_4 varchar(100),
-              UD_TEXT_5 varchar(100),
-              UD_TEXT_6 varchar(100),
-              UD_TEXT_7 varchar(100),
-              UD_TEXT_8 varchar(100),
-              UD_TEXT_9 varchar(100),
-              UD_TEXT_10 varchar(100),
-              UD_TEXT_11 varchar(100),
-              UD_TEXT_12 varchar(100),
+              UD_TEXT_1 varchar(999),
+              UD_TEXT_2 varchar(999),
+              UD_TEXT_3 varchar(999),
+              UD_TEXT_4 varchar(999),
+              UD_TEXT_5 varchar(999),
+              UD_TEXT_6 varchar(999),
+              UD_TEXT_7 varchar(999),
+              UD_TEXT_8 varchar(999),
+              UD_TEXT_9 varchar(999),
+              UD_TEXT_10 varchar(999),
+              UD_TEXT_11 varchar(999),
+              UD_TEXT_12 varchar(999),
               UD_DATE_1 timestamp,
               UD_DATE_2 timestamp,
               UD_DATE_3 timestamp,
@@ -724,34 +724,34 @@
               DURATION_SECONDS numeric,
               ONSET_LATENCY_SECONDS numeric,
               ONSET_DELAY_SECONDS numeric,
-              BODY_SYS_J varchar(250),
+              BODY_SYS_J varchar(999),
               CODE_STATUS_J numeric,
-              DESC_CODED_J varchar(255),
-              DESC_REPTD_J varchar(250),
-              HLGT_J varchar(250),
-              HLT_J varchar(250),
-              INC_CODE_J varchar(30),
-              INC_TERM_J varchar(250),
-              PREF_TERM_J varchar(250),
-              SC_OTHER_TEXT_J varchar(30),
+              DESC_CODED_J varchar(999),
+              DESC_REPTD_J varchar(999),
+              HLGT_J varchar(999),
+              HLT_J varchar(999),
+              INC_CODE_J varchar(999),
+              INC_TERM_J varchar(999),
+              PREF_TERM_J varchar(999),
+              SC_OTHER_TEXT_J varchar(999),
               REPORT_EXCLUSION numeric,
               REPORTABLE numeric,
-              UD_TEXT_1_J varchar(100),
-              UD_TEXT_2_J varchar(100),
-              UD_TEXT_3_J varchar(100),
-              UD_TEXT_4_J varchar(100),
-              UD_TEXT_5_J varchar(100),
-              UD_TEXT_6_J varchar(100),
-              UD_TEXT_7_J varchar(100),
-              UD_TEXT_8_J varchar(100),
-              UD_TEXT_9_J varchar(100),
-              UD_TEXT_10_J varchar(100),
-              UD_TEXT_11_J varchar(100),
-              UD_TEXT_12_J varchar(100),
+              UD_TEXT_1_J varchar(999),
+              UD_TEXT_2_J varchar(999),
+              UD_TEXT_3_J varchar(999),
+              UD_TEXT_4_J varchar(999),
+              UD_TEXT_5_J varchar(999),
+              UD_TEXT_6_J varchar(999),
+              UD_TEXT_7_J varchar(999),
+              UD_TEXT_8_J varchar(999),
+              UD_TEXT_9_J varchar(999),
+              UD_TEXT_10_J varchar(999),
+              UD_TEXT_11_J varchar(999),
+              UD_TEXT_12_J varchar(999),
               SYN_CODE_J numeric,
               INFECTION numeric,
-              RPT_EXCLUDE_CMT varchar(1000),
-              RPT_EXCLUDE_CMT_J varchar(1000),
+              RPT_EXCLUDE_CMT varchar(999),
+              RPT_EXCLUDE_CMT_J varchar(999),
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
               DELETED_FLAG numeric(1) NOT NULL,
@@ -773,16 +773,16 @@
               DET_LISTEDNESS_ID numeric,
               RPT_CAUSALITY_ID numeric,
               DET_CAUSALITY_ID numeric,
-              LISTED_JUSTIFY varchar(1000),
-              CAUSE_JUSTIFY varchar(1000),
+              LISTED_JUSTIFY varchar(999),
+              CAUSE_JUSTIFY varchar(999),
               LAM_ASSESSED numeric(12),
               DELETED timestamp,
-              CAUSALITY_ASSESSMENT varchar(50),
+              CAUSALITY_ASSESSMENT varchar(999),
               CAUSALITY_SCORE numeric,
               SOURCE_ID numeric,
               PRT_CAUSALITY_ID numeric,
-              CAUSE_JUSTIFY_J varchar(1000),
-              LISTED_JUSTIFY_J varchar(1000),
+              CAUSE_JUSTIFY_J varchar(999),
+              LISTED_JUSTIFY_J varchar(999),
               DLP_REVISION_NUMBER numeric NOT NULL,
               LAST_UPDATE_TIME timestamp,
               REVISION_DELETE_FLAG numeric,
@@ -799,10 +799,10 @@
               SEQ_NUM numeric NOT NULL,
               ED_SEQ_NUM numeric NOT NULL,
               EVT_CONSEQUENCE_ID numeric NOT NULL,
-              CONSEQUENCE varchar(100),
-              TERM varchar(250),
-              CONSEQUENCE_J varchar(100),
-              TERM_J varchar(250),
+              CONSEQUENCE varchar(999),
+              TERM varchar(999),
+              CONSEQUENCE_J varchar(999),
+              TERM_J varchar(999),
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
               EFFECTIVE_START_DATE timestamp NOT NULL,
@@ -819,19 +819,19 @@
               SEQ_NUM numeric NOT NULL,
               PROD_SEQ_NUM numeric NOT NULL,
               EVENT_SEQ_NUM numeric NOT NULL,
-              ONSET_DELAY varchar(40),
+              ONSET_DELAY varchar(999),
               ONSET_DELAY_SECONDS numeric,
-              ONSET_LATENCY varchar(40),
+              ONSET_LATENCY varchar(999),
               ONSET_LATENCY_SECONDS numeric,
               TOTAL_DOSE numeric(22,7),
               TOTAL_DOSE_UNIT_ID numeric,
               MOST_IMPORTANT numeric,
               MORE_SPECIFIC numeric,
               ACT_TAKEN_ID numeric,
-              OTHER_INFORMATION varchar(250),
+              OTHER_INFORMATION varchar(999),
               DECHALLENGE numeric,
               RECHALLENGE numeric,
-              OTHER_INFORMATION_J varchar(250),
+              OTHER_INFORMATION_J varchar(999),
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
@@ -847,10 +847,10 @@
               CASE_ID numeric NOT NULL,
               EVENT_SEQ_NUM numeric NOT NULL,
               AGENT_SEQ_NUM numeric NOT NULL,
-              CHRONOLOGY varchar(4),
-              SEMIOLOGY varchar(4),
-              BIBLIOGRAPHY varchar(4),
-              IMPUTABILITY varchar(4),
+              CHRONOLOGY varchar(999),
+              SEMIOLOGY varchar(999),
+              BIBLIOGRAPHY varchar(999),
+              IMPUTABILITY varchar(999),
               DELETED timestamp,
               TIME_TO_ONSET numeric,
               READMINISTRATION numeric,
@@ -927,10 +927,10 @@
               DELETED timestamp,
               SIGNIFICANT_DEVICE numeric(1),
               DATA_CLEANUP numeric(1),
-              JUSTIFICATION varchar(1000),
+              JUSTIFICATION varchar(999),
               JUSTIFICATION_ID numeric,
-              JUSTIFICATION_J varchar(1000),
-              JUST_RECEIPT_DATE_J varchar(1000),
+              JUSTIFICATION_J varchar(999),
+              JUST_RECEIPT_DATE_J varchar(999),
               RECEIPT_DATE_J timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
@@ -952,9 +952,9 @@
               SUMMARY numeric,
               EVENT_CAUSED numeric,
               START_DATE_RES numeric,
-              START_DATE_PARTIAL varchar(20),
+              START_DATE_PARTIAL varchar(999),
               END_DATE_RES numeric,
-              END_DATE_PARTIAL varchar(20),
+              END_DATE_PARTIAL varchar(999),
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
@@ -971,8 +971,8 @@
               FIELD_ID numeric NOT NULL,
               PRIMARY_SEQ_NUM numeric NOT NULL,
               ALT_SEQ_NUM numeric NOT NULL,
-              J_TEXT varchar(1000),
-              J_TEXT_J varchar(1000),
+              J_TEXT varchar(999),
+              J_TEXT_J varchar(999),
               UPDATED_TIME timestamp,
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
@@ -993,40 +993,40 @@
               SORT_ID numeric,
               ASSESSMENT numeric,
               TEST_DATE_RES numeric(4),
-              RESULTS varchar(50),
-              NORM_HIGH varchar(50),
-              NORM_LOW varchar(50),
-              TEST_DATE_PARTIAL varchar(20),
-              RESULT varchar(20),
-              UNIT varchar(35),
-              LAB_TEST_NAME varchar(250),
+              RESULTS varchar(999),
+              NORM_HIGH varchar(999),
+              NORM_LOW varchar(999),
+              TEST_DATE_PARTIAL varchar(999),
+              RESULT varchar(999),
+              UNIT varchar(999),
+              LAB_TEST_NAME varchar(999),
               DELETED timestamp,
               NOTES varchar(999),
               NOTES_J varchar(999),
-              PT_CODE varchar(50),
-              LLT_CODE varchar(50),
-              HLT_CODE varchar(50),
-              HLGT_CODE varchar(50),
-              SOC_CODE varchar(50),
+              PT_CODE varchar(999),
+              LLT_CODE varchar(999),
+              HLT_CODE varchar(999),
+              HLGT_CODE varchar(999),
+              SOC_CODE varchar(999),
               SYN_CODE numeric,
               DICT_ID numeric,
-              LLT varchar(250),
-              HLT varchar(250),
-              HLGT varchar(250),
-              SOC varchar(250),
+              LLT varchar(999),
+              HLT varchar(999),
+              HLGT varchar(999),
+              SOC varchar(999),
               CODE_STATUS numeric,
-              TEST_REPTD varchar(250),
+              TEST_REPTD varchar(999),
               UNIT_ID numeric,
               CODE_STATUS_J numeric,
-              HLGT_J varchar(250),
-              HLT_J varchar(250),
-              LAB_TEST_NAME_J varchar(250),
-              LLT_CODE_J varchar(50),
-              LLT_J varchar(250),
-              RESULTS_J varchar(50),
-              RESULT_J varchar(20),
-              SOC_J varchar(250),
-              TEST_REPTD_J varchar(250),
+              HLGT_J varchar(999),
+              HLT_J varchar(999),
+              LAB_TEST_NAME_J varchar(999),
+              LLT_CODE_J varchar(999),
+              LLT_J varchar(999),
+              RESULTS_J varchar(999),
+              RESULT_J varchar(999),
+              SOC_J varchar(999),
+              TEST_REPTD_J varchar(999),
               SYN_CODE_J numeric,
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
@@ -1078,16 +1078,16 @@
               SEQ_NUM numeric NOT NULL,
               SORT_ID numeric,
               LITERATURE_ID numeric,
-              JOURNAL varchar(80),
-              AUTHOR varchar(200),
-              TITLE varchar(500),
-              VOL varchar(15),
-              YEAR varchar(4),
-              PGS varchar(30),
-              DELETED timestamp,
-              AUTHOR_J varchar(200),
-              JOURNAL_J varchar(80),
-              TITLE_J varchar(500),
+              JOURNAL varchar(999),
+              AUTHOR varchar(999),
+              TITLE varchar(999),
+              VOL varchar(999),
+              YEAR varchar(999),
+              PGS varchar(999),
+              DELETED timestamp,
+              AUTHOR_J varchar(999),
+              JOURNAL_J varchar(999),
+              TITLE_J varchar(999),
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
               DELETED_FLAG numeric(1) NOT NULL,
@@ -1125,7 +1125,7 @@
               LOC_ODF numeric,
               LOC_ASF numeric,
               LOC_OTHER numeric,
-              LOC_OTHER_TEXT varchar(15),
+              LOC_OTHER_TEXT varchar(999),
               FOLLOWUP_TYPE numeric,
               SINGLE_USE numeric,
               MFG_DATE timestamp,
@@ -1150,34 +1150,34 @@
               FDA_DEV_CD3 char(4),
               DEV_USAGE numeric,
               DEV_OPER numeric,
-              DEV_OPER_OTHER_TEXT varchar(20),
-              NDC varchar(50),
-              CATALOG varchar(20),
-              OTHER varchar(30),
+              DEV_OPER_OTHER_TEXT varchar(999),
+              NDC varchar(999),
+              CATALOG varchar(999),
+              OTHER varchar(999),
               FACILITY_DISTRIBUTOR numeric(1),
-              UF_DIST_REPORT varchar(50),
-              NAME_ADDRESS varchar(300),
-              CONT_NAME varchar(40),
-              CONT_PHONE varchar(20),
+              UF_DIST_REPORT varchar(999),
+              NAME_ADDRESS varchar(999),
+              CONT_NAME varchar(999),
+              CONT_PHONE varchar(999),
               AWARE_DATE timestamp,
               SENT_FDA numeric(1),
               SENT_FDA_DATE timestamp,
               SENT_MANUFACTURER numeric(1),
               SENT_MANU_DATE timestamp,
               REPORT_SOURCE numeric,
-              RS_OTHER_TEXT varchar(30),
+              RS_OTHER_TEXT varchar(999),
               PRE1938 numeric(1),
               OTC numeric(1),
               EVENT_TYPE numeric,
-              EVENT_OTHER varchar(40),
+              EVENT_OTHER varchar(999),
               MFR_EVALUATION numeric,
-              MFR_NO_CODE varchar(20),
+              MFR_NO_CODE varchar(999),
               REMEDIAL_ACTION numeric,
-              REMEDIAL_OTHER varchar(20),
-              USC varchar(20),
+              REMEDIAL_OTHER varchar(999),
+              USC varchar(999),
               MANU_NARRATIVE numeric(1),
               MANU_CORRECTED numeric(1),
-              PLA varchar(10),
+              PLA varchar(999),
               DELETED timestamp,
               NARRATIVE_TEXT varchar(999),
               DLP_REVISION_NUMBER numeric NOT NULL,
@@ -1194,7 +1194,7 @@
               CASE_ID numeric NOT NULL,
               MED_STATUS_ID numeric NOT NULL,
               MED_STATUS numeric,
-              OTHER_TEXT varchar(20),
+              OTHER_TEXT varchar(999),
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
@@ -1250,13 +1250,13 @@
               APGAR1 numeric,
               APGAR2 numeric,
               APGAR3 numeric,
-              NOTES varchar(1000),
+              NOTES varchar(999),
               SORT_ID numeric,
               DELETED timestamp,
               BIRTH_TYPE_ID numeric,
               FETAL_OUTCOME_ID numeric,
               PARENT numeric NOT NULL,
-              NOTES_J varchar(1000),
+              NOTES_J varchar(999),
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
               DELETED_FLAG numeric(1) NOT NULL,
@@ -1277,17 +1277,17 @@
               E2B_ADD_DOC numeric,
               BLOBSIZE numeric,
               SORT_ID numeric,
-              FILETYPE varchar(300),
-              KEYWORDS varchar(200),
-              NOTES varchar(1000),
+              FILETYPE varchar(999),
+              KEYWORDS varchar(999),
+              NOTES varchar(999),
               LAM_ID numeric(10),
               LAM_NOTES_ATTACHMENT_ID numeric(10),
               DELETED timestamp,
-              DOCUMENTUM_ID varchar(200),
+              DOCUMENTUM_ID varchar(999),
               INCL_REG_SUB numeric,
               ESM_REPORT_ID numeric,
-              KEYWORDS_J varchar(200),
-              NOTES_J varchar(1000),
+              KEYWORDS_J varchar(999),
+              NOTES_J varchar(999),
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
               DELETED_FLAG numeric(1) NOT NULL,
@@ -1307,15 +1307,15 @@
               DOB timestamp,
               DOB_RES numeric(1),
               HEIGHT_CM numeric(22,7),
-              INITIALS varchar(10),
+              INITIALS varchar(999),
               WEIGHT_KG numeric(22,7),
-              DOB_PARTIAL varchar(20),
+              DOB_PARTIAL varchar(999),
               WEIGHT_LBS numeric(22,7),
               HEIGHT_IN numeric(22,7),
               DELETED timestamp,
               BREASTFEEDING numeric,
               DATE_OF_LMP_RES numeric,
-              DATE_OF_LMP_PARTIAL varchar(20),
+              DATE_OF_LMP_PARTIAL varchar(999),
               MED_HIST_TEXT varchar(999),
               MED_HIST_TEXT_J varchar(999),
               DLP_REVISION_NUMBER numeric NOT NULL,
@@ -1340,87 +1340,87 @@
               CONTINUE numeric(1),
               PARENT numeric(1),
               ITEM_DICT numeric,
-              ITEM_CODE varchar(45),
-              START_DATE_PARTIAL varchar(20),
-              STOP_DATE_PARTIAL varchar(20),
-              CONDITION varchar(250),
+              ITEM_CODE varchar(999),
+              START_DATE_PARTIAL varchar(999),
+              STOP_DATE_PARTIAL varchar(999),
+              CONDITION varchar(999),
               NOTE varchar(999),
               NOTE_J varchar(999),
-              ITEM_LLT varchar(250),
-              ITEM_HLT varchar(250),
-              ITEM_HLGT varchar(250),
-              ITEM_SOC varchar(250),
-              ITEM_LLT_CODE varchar(50),
-              ITEM_HLT_CODE varchar(50),
-              ITEM_HLGT_CODE varchar(50),
-              ITEM_SOC_CODE varchar(50),
-              ITEM_REPTD varchar(255),
-              ITEM_CODED varchar(255),
+              ITEM_LLT varchar(999),
+              ITEM_HLT varchar(999),
+              ITEM_HLGT varchar(999),
+              ITEM_SOC varchar(999),
+              ITEM_LLT_CODE varchar(999),
+              ITEM_HLT_CODE varchar(999),
+              ITEM_HLGT_CODE varchar(999),
+              ITEM_SOC_CODE varchar(999),
+              ITEM_REPTD varchar(999),
+              ITEM_CODED varchar(999),
               ITEM_SYN_CODE numeric,
               ITEM_CODE_STATUS numeric(3),
               DELETED timestamp,
-              INDICATION varchar(250),
-              IND_REPTD varchar(255),
-              IND_CODED varchar(255),
-              IND_PT_CODE varchar(50),
-              IND_LLT_CODE varchar(50),
-              IND_LLT varchar(250),
-              IND_HLT_CODE varchar(50),
-              IND_HLT varchar(250),
-              IND_HLGT_CODE varchar(50),
-              IND_HLGT varchar(250),
-              IND_SOC_CODE varchar(50),
-              IND_SOC varchar(250),
+              INDICATION varchar(999),
+              IND_REPTD varchar(999),
+              IND_CODED varchar(999),
+              IND_PT_CODE varchar(999),
+              IND_LLT_CODE varchar(999),
+              IND_LLT varchar(999),
+              IND_HLT_CODE varchar(999),
+              IND_HLT varchar(999),
+              IND_HLGT_CODE varchar(999),
+              IND_HLGT varchar(999),
+              IND_SOC_CODE varchar(999),
+              IND_SOC varchar(999),
               IND_SYN_CODE numeric,
               IND_DICT_ID numeric,
               IND_CODE_STATUS numeric(3),
-              REACTION varchar(250),
-              REACT_REPTD varchar(255),
-              REACT_CODED varchar(255),
-              REACT_PT_CODE varchar(50),
-              REACT_LLT_CODE varchar(50),
-              REACT_LLT varchar(250),
-              REACT_HLT_CODE varchar(50),
-              REACT_HLT varchar(250),
-              REACT_HLGT_CODE varchar(50),
-              REACT_HLGT varchar(250),
-              REACT_SOC_CODE varchar(50),
-              REACT_SOC varchar(250),
+              REACTION varchar(999),
+              REACT_REPTD varchar(999),
+              REACT_CODED varchar(999),
+              REACT_PT_CODE varchar(999),
+              REACT_LLT_CODE varchar(999),
+              REACT_LLT varchar(999),
+              REACT_HLT_CODE varchar(999),
+              REACT_HLT varchar(999),
+              REACT_HLGT_CODE varchar(999),
+              REACT_HLGT varchar(999),
+              REACT_SOC_CODE varchar(999),
+              REACT_SOC varchar(999),
               REACT_SYN_CODE numeric,
               REACT_DICT_ID numeric,
               REACT_CODE_STATUS numeric(3),
-              CONDITION_J varchar(250),
-              INDICATION_J varchar(250),
-              IND_CODED_J varchar(255),
+              CONDITION_J varchar(999),
+              INDICATION_J varchar(999),
+              IND_CODED_J varchar(999),
               IND_CODE_STATUS_J numeric,
-              IND_HLGT_J varchar(250),
-              IND_HLT_J varchar(250),
-              IND_LLT_CODE_J varchar(50),
-              IND_LLT_J varchar(250),
-              IND_REPTD_J varchar(255),
-              IND_SOC_J varchar(250),
-              ITEM_CODED_J varchar(255),
+              IND_HLGT_J varchar(999),
+              IND_HLT_J varchar(999),
+              IND_LLT_CODE_J varchar(999),
+              IND_LLT_J varchar(999),
+              IND_REPTD_J varchar(999),
+              IND_SOC_J varchar(999),
+              ITEM_CODED_J varchar(999),
               ITEM_CODE_STATUS_J numeric,
-              ITEM_HLGT_J varchar(250),
-              ITEM_HLT_J varchar(250),
-              ITEM_LLT_CODE_J varchar(50),
-              ITEM_LLT_J varchar(250),
-              ITEM_REPTD_J varchar(255),
-              ITEM_SOC_J varchar(250),
-              REACTION_J varchar(250),
-              REACT_CODED_J varchar(255),
+              ITEM_HLGT_J varchar(999),
+              ITEM_HLT_J varchar(999),
+              ITEM_LLT_CODE_J varchar(999),
+              ITEM_LLT_J varchar(999),
+              ITEM_REPTD_J varchar(999),
+              ITEM_SOC_J varchar(999),
+              REACTION_J varchar(999),
+              REACT_CODED_J varchar(999),
               REACT_CODE_STATUS_J numeric,
-              REACT_HLGT_J varchar(250),
-              REACT_HLT_J varchar(250),
-              REACT_LLT_CODE_J varchar(50),
-              REACT_LLT_J varchar(250),
-              REACT_REPTD_J varchar(255),
-              REACT_SOC_J varchar(250),
+              REACT_HLGT_J varchar(999),
+              REACT_HLT_J varchar(999),
+              REACT_LLT_CODE_J varchar(999),
+              REACT_LLT_J varchar(999),
+              REACT_REPTD_J varchar(999),
+              REACT_SOC_J varchar(999),
               IND_SYN_CODE_J numeric,
               ITEM_SYN_CODE_J numeric,
               REACT_SYN_CODE_J numeric,
               ITEM_DICT_J numeric,
-              ITEM_CODE_J varchar(50),
+              ITEM_CODE_J varchar(999),
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
               DELETED_FLAG numeric(1) NOT NULL,
@@ -1433,18 +1433,18 @@
           "CREATE TABLE rm_case_pat_info (
               ENTERPRISE_ID numeric NOT NULL,
               CASE_ID numeric NOT NULL,
-              PAT_ID varchar(10),
-              PAT_SUBJ_NUM varchar(20),
-              PAT_INITIALS varchar(10),
-              PAT_FIRSTNAME varchar(35),
-              PAT_MI varchar(15),
-              PAT_LASTNAME varchar(50),
-              PAT_ADDRESS varchar(120),
-              PAT_CITY varchar(35),
-              PAT_STATE varchar(40),
-              PAT_POSTAL_CODE varchar(15),
-              PAT_COUNTRY varchar(50),
-              PAT_PHONE varchar(20),
+              PAT_ID varchar(999),
+              PAT_SUBJ_NUM varchar(999),
+              PAT_INITIALS varchar(999),
+              PAT_FIRSTNAME varchar(999),
+              PAT_MI varchar(999),
+              PAT_LASTNAME varchar(999),
+              PAT_ADDRESS varchar(999),
+              PAT_CITY varchar(999),
+              PAT_STATE varchar(999),
+              PAT_POSTAL_CODE varchar(999),
+              PAT_COUNTRY varchar(999),
+              PAT_PHONE varchar(999),
               PAT_DOB timestamp,
               PAT_DOB_RES numeric,
               PAT_AGE numeric(22,7),
@@ -1459,22 +1459,22 @@
               OCCUPATION_ID numeric,
               PAT_STAT_PREG numeric,
               REL_TEST_ID numeric,
-              PAT_DOB_PARTIAL varchar(20),
-              RAND_NUM varchar(15),
+              PAT_DOB_PARTIAL varchar(999),
+              RAND_NUM varchar(999),
               CONFIDENTIAL numeric(1),
-              NUMBER_OF_PATIENTS varchar(8),
-              UD_TEXT_1 varchar(100),
-              UD_TEXT_2 varchar(100),
-              UD_TEXT_3 varchar(100),
-              UD_TEXT_4 varchar(100),
-              UD_TEXT_5 varchar(100),
-              UD_TEXT_6 varchar(100),
-              UD_TEXT_7 varchar(100),
-              UD_TEXT_8 varchar(100),
-              UD_TEXT_9 varchar(100),
-              UD_TEXT_10 varchar(100),
-              UD_TEXT_11 varchar(100),
-              UD_TEXT_12 varchar(100),
+              NUMBER_OF_PATIENTS varchar(999),
+              UD_TEXT_1 varchar(999),
+              UD_TEXT_2 varchar(999),
+              UD_TEXT_3 varchar(999),
+              UD_TEXT_4 varchar(999),
+              UD_TEXT_5 varchar(999),
+              UD_TEXT_6 varchar(999),
+              UD_TEXT_7 varchar(999),
+              UD_TEXT_8 varchar(999),
+              UD_TEXT_9 varchar(999),
+              UD_TEXT_10 varchar(999),
+              UD_TEXT_11 varchar(999),
+              UD_TEXT_12 varchar(999),
               UD_DATE_1 timestamp,
               UD_DATE_2 timestamp,
               UD_DATE_3 timestamp,
@@ -1503,24 +1503,24 @@
               CHILD_ONLY numeric(1),
               PAT_BMI numeric(22,7),
               PAT_BODY_AREA numeric(22,7),
-              PAT_ADDRESS_J varchar(120),
-              PAT_CITY_J varchar(35),
-              PAT_FIRSTNAME_J varchar(35),
-              PAT_LASTNAME_J varchar(50),
-              PAT_MI_J varchar(15),
-              PAT_STATE_J varchar(40),
-              UD_TEXT_1_J varchar(100),
-              UD_TEXT_2_J varchar(100),
-              UD_TEXT_3_J varchar(100),
-              UD_TEXT_4_J varchar(100),
-              UD_TEXT_5_J varchar(100),
-              UD_TEXT_6_J varchar(100),
-              UD_TEXT_7_J varchar(100),
-              UD_TEXT_8_J varchar(100),
-              UD_TEXT_9_J varchar(100),
-              UD_TEXT_10_J varchar(100),
-              UD_TEXT_11_J varchar(100),
-              UD_TEXT_12_J varchar(100),
+              PAT_ADDRESS_J varchar(999),
+              PAT_CITY_J varchar(999),
+              PAT_FIRSTNAME_J varchar(999),
+              PAT_LASTNAME_J varchar(999),
+              PAT_MI_J varchar(999),
+              PAT_STATE_J varchar(999),
+              UD_TEXT_1_J varchar(999),
+              UD_TEXT_2_J varchar(999),
+              UD_TEXT_3_J varchar(999),
+              UD_TEXT_4_J varchar(999),
+              UD_TEXT_5_J varchar(999),
+              UD_TEXT_6_J varchar(999),
+              UD_TEXT_7_J varchar(999),
+              UD_TEXT_8_J varchar(999),
+              UD_TEXT_9_J varchar(999),
+              UD_TEXT_10_J varchar(999),
+              UD_TEXT_11_J varchar(999),
+              UD_TEXT_12_J varchar(999),
               PAT_COUNTRY_ID numeric,
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
@@ -1592,7 +1592,7 @@
               REPORT_TYPE numeric,
               RPT_CATEGORY_ID numeric,
               CASE_COMPLETE numeric,
-              PMDA_NUMBER varchar(100),
+              PMDA_NUMBER varchar(999),
               INCOMPLETE_COMMENT varchar(999),
               FUTURE_ACTIONS varchar(999),
               FORM_2_MEMO varchar(999),
@@ -1635,8 +1635,8 @@
               PROD_SEQ_NUM numeric NOT NULL,
               SEQ_NUM numeric NOT NULL,
               RECEIVED_DATE timestamp,
-              ACK_BRANCH_NUMBER varchar(8),
-              REG_BRANCH_NUMBER varchar(8),
+              ACK_BRANCH_NUMBER varchar(999),
+              REG_BRANCH_NUMBER varchar(999),
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
@@ -1713,7 +1713,7 @@
               PROSPECTIVE numeric(1),
               NUMBER_OF_FETUS numeric(2),
               DATE_OF_LMP_RES numeric,
-              DATE_OF_LMP_PARTIAL varchar(20),
+              DATE_OF_LMP_PARTIAL varchar(999),
               GRAVIDA numeric,
               PARA numeric,
               DLP_REVISION_NUMBER numeric NOT NULL,
@@ -1742,24 +1742,24 @@
               QC_SAFETY_DATE timestamp,
               QC_SENT_DATE timestamp,
               QC_RESULT_DATE timestamp,
-              QC_CROSS_REFERENCE varchar(99),
-              WHO_DRUG_CODE varchar(45),
-              CO_DRUG_CODE varchar(20),
-              PRODUCT_NAME varchar(70),
+              QC_CROSS_REFERENCE varchar(999),
+              WHO_DRUG_CODE varchar(999),
+              CO_DRUG_CODE varchar(999),
+              PRODUCT_NAME varchar(999),
               GENERIC_NAME varchar(999),
               GENERIC_NAME_J varchar(999),
-              UD_TEXT_1 varchar(100),
-              UD_TEXT_2 varchar(100),
-              UD_TEXT_3 varchar(100),
-              UD_TEXT_4 varchar(100),
-              UD_TEXT_5 varchar(100),
-              UD_TEXT_6 varchar(100),
-              UD_TEXT_7 varchar(100),
-              UD_TEXT_8 varchar(100),
-              UD_TEXT_9 varchar(100),
-              UD_TEXT_10 varchar(100),
-              UD_TEXT_11 varchar(100),
-              UD_TEXT_12 varchar(100),
+              UD_TEXT_1 varchar(999),
+              UD_TEXT_2 varchar(999),
+              UD_TEXT_3 varchar(999),
+              UD_TEXT_4 varchar(999),
+              UD_TEXT_5 varchar(999),
+              UD_TEXT_6 varchar(999),
+              UD_TEXT_7 varchar(999),
+              UD_TEXT_8 varchar(999),
+              UD_TEXT_9 varchar(999),
+              UD_TEXT_10 varchar(999),
+              UD_TEXT_11 varchar(999),
+              UD_TEXT_12 varchar(999),
               UD_DATE_1 timestamp,
               UD_DATE_2 timestamp,
               UD_DATE_3 timestamp,
@@ -1786,39 +1786,39 @@
               UD_NUMBER_12 numeric(30,10),
               INCLUDE_FREQUENCY numeric,
               SDRUG_NOT_ADMIN numeric,
-              PROD_REPTD varchar(255),
-              PROD_CODED varchar(255),
+              PROD_REPTD varchar(999),
+              PROD_CODED varchar(999),
               PROD_SYN_ID numeric,
               PROD_CODE_STATUS numeric(3),
               DELETED timestamp,
               STUDY_PRODUCT_NUM numeric(2),
-              QC_QUANTITY varchar(10),
+              QC_QUANTITY varchar(999),
               QC_RETURN_DATE timestamp,
               QC_COMPLAINT_CAT_DATE timestamp,
               QC_ANALYSIS_CAT_DATE timestamp,
               QC_ANALYSIS_SUMMARY_DATE timestamp,
               PRIMARY_EVENT numeric,
-              MEDICINAL_PROD_ID varchar(10),
+              MEDICINAL_PROD_ID varchar(999),
               FAMILY_ID numeric,
               EXISTING_RPT_SEQ_MOD_FLG numeric,
-              DRUG_CODE_J varchar(20),
+              DRUG_CODE_J varchar(999),
               DRUG_CODE_TYPE_J numeric,
               PRODUCT_NAME_J varchar(999),
-              PROD_CODED_J varchar(255),
-              PROD_REPTD_J varchar(255),
-              QC_CROSS_REFERENCE_J varchar(99),
-              UD_TEXT_1_J varchar(100),
-              UD_TEXT_2_J varchar(100),
-              UD_TEXT_3_J varchar(100),
-              UD_TEXT_4_J varchar(100),
-              UD_TEXT_5_J varchar(100),
-              UD_TEXT_6_J varchar(100),
-              UD_TEXT_7_J varchar(100),
-              UD_TEXT_8_J varchar(100),
-              UD_TEXT_9_J varchar(100),
-              UD_TEXT_10_J varchar(100),
-              UD_TEXT_11_J varchar(100),
-              UD_TEXT_12_J varchar(100),
+              PROD_CODED_J varchar(999),
+              PROD_REPTD_J varchar(999),
+              QC_CROSS_REFERENCE_J varchar(999),
+              UD_TEXT_1_J varchar(999),
+              UD_TEXT_2_J varchar(999),
+              UD_TEXT_3_J varchar(999),
+              UD_TEXT_4_J varchar(999),
+              UD_TEXT_5_J varchar(999),
+              UD_TEXT_6_J varchar(999),
+              UD_TEXT_7_J varchar(999),
+              UD_TEXT_8_J varchar(999),
+              UD_TEXT_9_J varchar(999),
+              UD_TEXT_10_J varchar(999),
+              UD_TEXT_11_J varchar(999),
+              UD_TEXT_12_J varchar(999),
               DLP_REVISION_NUMBER numeric NOT NULL,
               LAST_UPDATE_TIME timestamp,
               REVISION_DELETE_FLAG numeric,
@@ -1847,58 +1847,58 @@
               ENTERPRISE_ID numeric NOT NULL,
               CASE_ID numeric NOT NULL,
               SEQ_NUM numeric NOT NULL,
-              MODEL_NO varchar(20),
-              LOT_NO varchar(35),
-              SERIAL_NO varchar(20),
+              MODEL_NO varchar(999),
+              LOT_NO varchar(999),
+              SERIAL_NO varchar(999),
               DATE_IMPLANT timestamp,
               DATE_IMPANT_RES numeric,
               DATE_EXPLANT timestamp,
               DATE_EXPLANT_RES numeric,
-              DEVICE_AGE varchar(10),
+              DEVICE_AGE varchar(999),
               EXP_DATE timestamp,
               EXP_DATE_RES numeric,
               SORT_ID numeric,
-              EXPLANT_DATE_PARTIAL varchar(20),
-              IMPLANT_DATE_PARTIAL varchar(20),
-              EXP_DATE_PARTIAL varchar(20),
+              EXPLANT_DATE_PARTIAL varchar(999),
+              IMPLANT_DATE_PARTIAL varchar(999),
+              EXP_DATE_PARTIAL varchar(999),
               DELETED timestamp,
               MALFUNCTION_DATE timestamp,
               LOT_ID numeric,
-              LOT_JUST varchar(1000),
+              LOT_JUST varchar(999),
               LOT_STATUS numeric(1),
               MFR_EVALUATION numeric,
               MFR_EVAL_REASON_ID numeric,
               MFG_DATE timestamp,
               REMEDIAL_ACTION numeric,
-              REMEDIAL_OTHER varchar(20),
+              REMEDIAL_OTHER varchar(999),
               DEV_USAGE numeric,
               DEV_OPER numeric,
-              DEV_OPER_OTHER_TEXT varchar(20),
-              CATALOG varchar(20),
-              CATALOG_OTHER varchar(30),
+              DEV_OPER_OTHER_TEXT varchar(999),
+              CATALOG varchar(999),
+              CATALOG_OTHER varchar(999),
               EVALUATION numeric,
               RETURN_DATE timestamp,
               SUBCOMPONENT_ID numeric,
-              SUBCOMPONENT_LOT varchar(35),
+              SUBCOMPONENT_LOT varchar(999),
               DEVICE_TYPE numeric,
               TRAINED_USER numeric,
               IMPROPER_USE numeric,
               MALFUNCTION numeric,
               MALFUNCTION_TYPE numeric,
               REPROCESSED_REUSE numeric,
-              REPROCESSOR_NAME_ADDRESS varchar(200),
-              UD_TEXT_1 varchar(100),
-              UD_TEXT_2 varchar(100),
-              UD_TEXT_3 varchar(100),
-              UD_TEXT_4 varchar(100),
-              UD_TEXT_5 varchar(100),
-              UD_TEXT_6 varchar(100),
-              UD_TEXT_7 varchar(100),
-              UD_TEXT_8 varchar(100),
-              UD_TEXT_9 varchar(100),
-              UD_TEXT_10 varchar(100),
-              UD_TEXT_11 varchar(100),
-              UD_TEXT_12 varchar(100),
+              REPROCESSOR_NAME_ADDRESS varchar(999),
+              UD_TEXT_1 varchar(999),
+              UD_TEXT_2 varchar(999),
+              UD_TEXT_3 varchar(999),
+              UD_TEXT_4 varchar(999),
+              UD_TEXT_5 varchar(999),
+              UD_TEXT_6 varchar(999),
+              UD_TEXT_7 varchar(999),
+              UD_TEXT_8 varchar(999),
+              UD_TEXT_9 varchar(999),
+              UD_TEXT_10 varchar(999),
+              UD_TEXT_11 varchar(999),
+              UD_TEXT_12 varchar(999),
               UD_DATE_1 timestamp,
               UD_DATE_2 timestamp,
               UD_DATE_3 timestamp,
@@ -1924,41 +1924,41 @@
               UD_NUMBER_11 numeric(30,10),
               UD_NUMBER_12 numeric(30,10),
               FOLLOWUP_TYPE numeric,
-              METH_CD1 varchar(4),
-              METH_CD2 varchar(4),
-              METH_CD3 varchar(4),
-              METH_CD4 varchar(4),
-              RES_CD1 varchar(4),
-              RES_CD2 varchar(4),
-              RES_CD3 varchar(4),
-              RES_CD4 varchar(4),
-              CONC_CD1 varchar(4),
-              CONC_CD2 varchar(4),
-              CONC_CD3 varchar(4),
-              CONC_CD4 varchar(4),
-              USC varchar(20),
+              METH_CD1 varchar(999),
+              METH_CD2 varchar(999),
+              METH_CD3 varchar(999),
+              METH_CD4 varchar(999),
+              RES_CD1 varchar(999),
+              RES_CD2 varchar(999),
+              RES_CD3 varchar(999),
+              RES_CD4 varchar(999),
+              CONC_CD1 varchar(999),
+              CONC_CD2 varchar(999),
+              CONC_CD3 varchar(999),
+              CONC_CD4 varchar(999),
+              USC varchar(999),
               MANU_NARRATIVE numeric(1),
               MANU_CORRECTED numeric(1),
               ADVERSE_EVENT numeric,
               PRODUCT_PROBLEM numeric,
               REPORT_TYPE numeric,
-              MFG_DATE_PARTIAL varchar(20),
+              MFG_DATE_PARTIAL varchar(999),
               MFG_DATE_RES numeric,
-              UD_TEXT_1_J varchar(100),
-              UD_TEXT_2_J varchar(100),
-              UD_TEXT_3_J varchar(100),
-              UD_TEXT_4_J varchar(100),
-              UD_TEXT_5_J varchar(100),
-              UD_TEXT_6_J varchar(100),
-              UD_TEXT_7_J varchar(100),
-              UD_TEXT_8_J varchar(100),
-              UD_TEXT_9_J varchar(100),
-              UD_TEXT_10_J varchar(100),
-              UD_TEXT_11_J varchar(100),
-              UD_TEXT_12_J varchar(100),
-              LOT_JUST_J varchar(1000),
-              DLP_REVISION_NUMBER numeric NOT NULL,
-              IMPLANT_DURATION varchar(20),
+              UD_TEXT_1_J varchar(999),
+              UD_TEXT_2_J varchar(999),
+              UD_TEXT_3_J varchar(999),
+              UD_TEXT_4_J varchar(999),
+              UD_TEXT_5_J varchar(999),
+              UD_TEXT_6_J varchar(999),
+              UD_TEXT_7_J varchar(999),
+              UD_TEXT_8_J varchar(999),
+              UD_TEXT_9_J varchar(999),
+              UD_TEXT_10_J varchar(999),
+              UD_TEXT_11_J varchar(999),
+              UD_TEXT_12_J varchar(999),
+              LOT_JUST_J varchar(999),
+              DLP_REVISION_NUMBER numeric NOT NULL,
+              IMPLANT_DURATION varchar(999),
               REVISION_DELETE_FLAG numeric,
               DELETED_FLAG numeric(1) NOT NULL,
               EFFECTIVE_START_DATE timestamp NOT NULL,
@@ -1978,8 +1978,8 @@
               MALFUNCTION_DATE timestamp,
               NEXT_REPORT_DATE timestamp,
               MALFUNCTION_STATUS numeric,
-              MALFUNCTION_NAME varchar(255),
-              RESPONSIBLE_OFFICER varchar(50),
+              MALFUNCTION_NAME varchar(999),
+              RESPONSIBLE_OFFICER varchar(999),
               PATIENT_STATUS varchar(999),
               PATIENT_TREATMENT varchar(999),
               FIRST_TIME_USE numeric,
@@ -1996,7 +1996,7 @@
               ACTION_TAKEN_UNTIL_NOW varchar(999),
               FUTURE_ACTIONS numeric,
               DEVICE_SUMMARY varchar(999),
-              MEASURE_CLASSIFICATION varchar(100),
+              MEASURE_CLASSIFICATION varchar(999),
               RESEARCH_AND_MEASURES varchar(999),
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
@@ -2013,7 +2013,7 @@
               CASE_ID numeric NOT NULL,
               SEQ_NUM numeric NOT NULL,
               FORMULATION_ID numeric,
-              CONCENTRATION varchar(10),
+              CONCENTRATION varchar(999),
               CONC_UNITS_ID numeric,
               ACT_TAKEN_ID numeric,
               SEVERITY_ID numeric,
@@ -2039,24 +2039,24 @@
               B_WEIGHT_GRAMS numeric,
               N_SIBLINGS numeric,
               B_WEIGHT_OZS numeric,
-              FIRST_DOSE_PARTIAL varchar(20),
-              LAST_DOSE_PARTIAL varchar(20),
+              FIRST_DOSE_PARTIAL varchar(999),
+              LAST_DOSE_PARTIAL varchar(999),
               TAMPERING numeric(4),
               CUMULATIVE_DOSE numeric(22,7),
-              CUMULATIVE_DOSE_UNIT varchar(10),
-              DELETED timestamp,
-              UD_TEXT_1 varchar(100),
-              UD_TEXT_2 varchar(100),
-              UD_TEXT_3 varchar(100),
-              UD_TEXT_4 varchar(100),
-              UD_TEXT_5 varchar(100),
-              UD_TEXT_6 varchar(100),
-              UD_TEXT_7 varchar(100),
-              UD_TEXT_8 varchar(100),
-              UD_TEXT_9 varchar(100),
-              UD_TEXT_10 varchar(100),
-              UD_TEXT_11 varchar(100),
-              UD_TEXT_12 varchar(100),
+              CUMULATIVE_DOSE_UNIT varchar(999),
+              DELETED timestamp,
+              UD_TEXT_1 varchar(999),
+              UD_TEXT_2 varchar(999),
+              UD_TEXT_3 varchar(999),
+              UD_TEXT_4 varchar(999),
+              UD_TEXT_5 varchar(999),
+              UD_TEXT_6 varchar(999),
+              UD_TEXT_7 varchar(999),
+              UD_TEXT_8 varchar(999),
+              UD_TEXT_9 varchar(999),
+              UD_TEXT_10 varchar(999),
+              UD_TEXT_11 varchar(999),
+              UD_TEXT_12 varchar(999),
               UD_DATE_1 timestamp,
               UD_DATE_2 timestamp,
               UD_DATE_3 timestamp,
@@ -2087,18 +2087,18 @@
               DURATION_SECONDS numeric,
               LATENCY_SECONDS numeric,
               DELAY_SECONDS numeric,
-              UD_TEXT_1_J varchar(100),
-              UD_TEXT_2_J varchar(100),
-              UD_TEXT_3_J varchar(100),
-              UD_TEXT_4_J varchar(100),
-              UD_TEXT_5_J varchar(100),
-              UD_TEXT_6_J varchar(100),
-              UD_TEXT_7_J varchar(100),
-              UD_TEXT_8_J varchar(100),
-              UD_TEXT_9_J varchar(100),
-              UD_TEXT_10_J varchar(100),
-              UD_TEXT_11_J varchar(100),
-              UD_TEXT_12_J varchar(100),
+              UD_TEXT_1_J varchar(999),
+              UD_TEXT_2_J varchar(999),
+              UD_TEXT_3_J varchar(999),
+              UD_TEXT_4_J varchar(999),
+              UD_TEXT_5_J varchar(999),
+              UD_TEXT_6_J varchar(999),
+              UD_TEXT_7_J varchar(999),
+              UD_TEXT_8_J varchar(999),
+              UD_TEXT_9_J varchar(999),
+              UD_TEXT_10_J varchar(999),
+              UD_TEXT_11_J varchar(999),
+              UD_TEXT_12_J varchar(999),
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
               DELETED_FLAG numeric(1) NOT NULL,
@@ -2114,30 +2114,30 @@
               PROD_SEQ_NUM numeric NOT NULL,
               SEQ_NUM numeric NOT NULL,
               SORT_ID numeric,
-              IND_REPTD varchar(255),
-              IND_CODED varchar(255),
-              IND_CODE varchar(50),
-              IND_PREF_TERM varchar(250),
-              IND_LLT_CODE varchar(50),
-              IND_LLT varchar(250),
-              IND_HLT_CODE varchar(50),
-              IND_HLT varchar(250),
-              IND_HLGT_CODE varchar(50),
-              IND_HLGT varchar(250),
-              IND_SOC_CODE varchar(50),
-              IND_SOC varchar(250),
+              IND_REPTD varchar(999),
+              IND_CODED varchar(999),
+              IND_CODE varchar(999),
+              IND_PREF_TERM varchar(999),
+              IND_LLT_CODE varchar(999),
+              IND_LLT varchar(999),
+              IND_HLT_CODE varchar(999),
+              IND_HLT varchar(999),
+              IND_HLGT_CODE varchar(999),
+              IND_HLGT varchar(999),
+              IND_SOC_CODE varchar(999),
+              IND_SOC varchar(999),
               IND_SYN_CODE numeric,
               IND_CODE_DICT numeric,
               IND_CODE_STATUS numeric(3),
-              IND_CODED_J varchar(255),
+              IND_CODED_J varchar(999),
               IND_CODE_STATUS_J numeric,
-              IND_HLGT_J varchar(250),
-              IND_HLT_J varchar(250),
-              IND_LLT_CODE_J varchar(50),
-              IND_LLT_J varchar(250),
-              IND_PREF_TERM_J varchar(250),
-              IND_REPTD_J varchar(255),
-              IND_SOC_J varchar(250),
+              IND_HLGT_J varchar(999),
+              IND_HLT_J varchar(999),
+              IND_LLT_CODE_J varchar(999),
+              IND_LLT_J varchar(999),
+              IND_PREF_TERM_J varchar(999),
+              IND_REPTD_J varchar(999),
+              IND_SOC_J varchar(999),
               IND_SYN_CODE_J numeric,
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
@@ -2156,7 +2156,7 @@
               ITEM numeric NOT NULL,
               INGREDIENT_ID numeric,
               CONC_UNIT_ID numeric,
-              CONCENTRATION varchar(10),
+              CONCENTRATION varchar(999),
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
@@ -2173,9 +2173,9 @@
               PROD_SEQ_NUM numeric NOT NULL,
               SEQ_NUM numeric NOT NULL,
               SORT_ID numeric,
-              CID_NUMBER varchar(20),
-              PCID_NUMBER varchar(20),
-              LOT_NUMBER varchar(35),
+              CID_NUMBER varchar(999),
+              PCID_NUMBER varchar(999),
+              LOT_NUMBER varchar(999),
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
               EFFECTIVE_START_DATE timestamp NOT NULL,
@@ -2190,12 +2190,12 @@
               ENTERPRISE_ID numeric NOT NULL,
               CASE_ID numeric NOT NULL,
               SEQ_NUM numeric NOT NULL,
-              REF_NO varchar(100),
+              REF_NO varchar(999),
               REF_TYPE_ID numeric,
-              NOTES varchar(200),
+              NOTES varchar(999),
               REF_CASE_ID numeric,
               SORT_ID numeric,
-              NOTES_J varchar(200),
+              NOTES_J varchar(999),
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
@@ -2249,34 +2249,34 @@
               SORT_ID numeric,
               CONFIDENTIAL numeric(1),
               COUNTRY_ID numeric,
-              SUFFIX varchar(15),
-              MIDDLE_NAME varchar(15),
-              PREFIX varchar(50),
-              FIRST_NAME varchar(35),
-              LAST_NAME varchar(50),
-              REPORTER_ID varchar(20),
-              INSTITUTION varchar(60),
-              DEPARTMENT varchar(60),
-              CITY varchar(35),
-              STATE varchar(40),
-              POSTCODE varchar(15),
-              COUNTRY varchar(50),
-              PHONE varchar(20),
-              ALTPHONE varchar(20),
-              FAX varchar(50),
-              REPORTER_REF varchar(20),
-              EMAIL varchar(100),
-              ADDRESS varchar(120),
-              SUFFIX_J varchar(15),
-              ADDRESS_J varchar(120),
-              CITY_J varchar(35),
-              DEPARTMENT_J varchar(60),
-              FIRST_NAME_J varchar(35),
-              INSTITUTION_J varchar(60),
-              LAST_NAME_J varchar(50),
-              MIDDLE_NAME_J varchar(15),
-              PREFIX_J varchar(50),
-              STATE_J varchar(40),
+              SUFFIX varchar(999),
+              MIDDLE_NAME varchar(999),
+              PREFIX varchar(999),
+              FIRST_NAME varchar(999),
+              LAST_NAME varchar(999),
+              REPORTER_ID varchar(999),
+              INSTITUTION varchar(999),
+              DEPARTMENT varchar(999),
+              CITY varchar(999),
+              STATE varchar(999),
+              POSTCODE varchar(999),
+              COUNTRY varchar(999),
+              PHONE varchar(999),
+              ALTPHONE varchar(999),
+              FAX varchar(999),
+              REPORTER_REF varchar(999),
+              EMAIL varchar(999),
+              ADDRESS varchar(999),
+              SUFFIX_J varchar(999),
+              ADDRESS_J varchar(999),
+              CITY_J varchar(999),
+              DEPARTMENT_J varchar(999),
+              FIRST_NAME_J varchar(999),
+              INSTITUTION_J varchar(999),
+              LAST_NAME_J varchar(999),
+              MIDDLE_NAME_J varchar(999),
+              PREFIX_J varchar(999),
+              STATE_J varchar(999),
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
@@ -2285,7 +2285,7 @@
               EFFECTIVE_END_DATE timestamp NOT NULL,
               NOTES varchar(999),
               NOTES_J varchar(999),
-              INSTITUTION_ID varchar(15),
+              INSTITUTION_ID varchar(999),
               PRIMARY KEY (ENTERPRISE_ID,CASE_ID,SEQ_NUM,DLP_REVISION_NUMBER)
           )" }

@@ -2318,14 +2318,14 @@
               ROUTE_DATE timestamp,
               USER_ID numeric,
               SORT_ID numeric,
-              COMMENT_TXT varchar(1000),
+              COMMENT_TXT varchar(999),
               TO_STATE_ID numeric,
               FR_STATE_ID numeric,
               WORKFLOW_SEQ_NUM numeric,
               DELETED timestamp,
               JUSTIFICATION_ID numeric,
               FOLLOWUP_NUM numeric,
-              COMMENT_TXT_J varchar(1000),
+              COMMENT_TXT_J varchar(999),
               DLP_REVISION_NUMBER numeric NOT NULL,
               S_FOLLOWUP_NUM numeric,
               REPORT_SCHEDULING numeric,
@@ -2343,30 +2343,30 @@
               ENTERPRISE_ID numeric NOT NULL,
               CASE_ID numeric NOT NULL,
               STUDY_KEY numeric,
-              STUDY_NUM varchar(35),
+              STUDY_NUM varchar(999),
               STUDY_TYPE numeric,
               CENTER_ID numeric,
-              CENTER_NAME varchar(40),
+              CENTER_NAME varchar(999),
               PROTOCOL_ID numeric,
-              PROTOCOL_NUM varchar(40),
-              OTHER_ID varchar(20),
+              PROTOCOL_NUM varchar(999),
+              OTHER_ID varchar(999),
               CODE_BROKEN numeric,
               BROKEN_BY numeric,
               BROKEN_DATE timestamp,
-              REASON varchar(100),
-              WEEK varchar(5),
-              VISIT varchar(5),
+              REASON varchar(999),
+              WEEK varchar(999),
+              VISIT varchar(999),
               DELETED timestamp,
               PRODUCT_COUNT numeric(2),
               CLASSIFICATION_ID numeric,
-              BLIND_NAME varchar(70),
+              BLIND_NAME varchar(999),
               STUDY_DESC varchar(999),
               STUDY_DESC_J varchar(999),
-              BLIND_NAME_J varchar(70),
-              CENTER_NAME_J varchar(40),
-              CLIN_COMPOUND_NUM_J varchar(70),
-              PROTOCOL_NUM_J varchar(40),
-              STUDY_NUM_J varchar(35),
+              BLIND_NAME_J varchar(999),
+              CENTER_NAME_J varchar(999),
+              CLIN_COMPOUND_NUM_J varchar(999),
+              PROTOCOL_NUM_J varchar(999),
+              STUDY_NUM_J varchar(999),
               DEV_PHASE_ID numeric,
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
@@ -2407,30 +2407,30 @@
               UD_DATE_10 timestamp,
               UD_DATE_11 timestamp,
               UD_DATE_12 timestamp,
-              UD_TEXT_1 varchar(100),
-              UD_TEXT_2 varchar(100),
-              UD_TEXT_3 varchar(100),
-              UD_TEXT_4 varchar(100),
-              UD_TEXT_5 varchar(100),
-              UD_TEXT_6 varchar(100),
-              UD_TEXT_7 varchar(100),
-              UD_TEXT_8 varchar(100),
-              UD_TEXT_9 varchar(100),
-              UD_TEXT_10 varchar(100),
-              UD_TEXT_11 varchar(100),
-              UD_TEXT_12 varchar(100),
-              UD_TEXT_1_J varchar(100),
-              UD_TEXT_2_J varchar(100),
-              UD_TEXT_3_J varchar(100),
-              UD_TEXT_4_J varchar(100),
-              UD_TEXT_5_J varchar(100),
-              UD_TEXT_6_J varchar(100),
-              UD_TEXT_7_J varchar(100),
-              UD_TEXT_8_J varchar(100),
-              UD_TEXT_9_J varchar(100),
-              UD_TEXT_10_J varchar(100),
-              UD_TEXT_11_J varchar(100),
-              UD_TEXT_12_J varchar(100),
+              UD_TEXT_1 varchar(999),
+              UD_TEXT_2 varchar(999),
+              UD_TEXT_3 varchar(999),
+              UD_TEXT_4 varchar(999),
+              UD_TEXT_5 varchar(999),
+              UD_TEXT_6 varchar(999),
+              UD_TEXT_7 varchar(999),
+              UD_TEXT_8 varchar(999),
+              UD_TEXT_9 varchar(999),
+              UD_TEXT_10 varchar(999),
+              UD_TEXT_11 varchar(999),
+              UD_TEXT_12 varchar(999),
+              UD_TEXT_1_J varchar(999),
+              UD_TEXT_2_J varchar(999),
+              UD_TEXT_3_J varchar(999),
+              UD_TEXT_4_J varchar(999),
+              UD_TEXT_5_J varchar(999),
+              UD_TEXT_6_J varchar(999),
+              UD_TEXT_7_J varchar(999),
+              UD_TEXT_8_J varchar(999),
+              UD_TEXT_9_J varchar(999),
+              UD_TEXT_10_J varchar(999),
+              UD_TEXT_11_J varchar(999),
+              UD_TEXT_12_J varchar(999),
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
               EFFECTIVE_START_DATE timestamp NOT NULL,
@@ -2450,15 +2450,15 @@
               ADMIN_ROUTE_ID numeric,
               VACC_DATE timestamp,
               VACC_DATE_RES numeric,
-              VACCINE varchar(40),
+              VACCINE varchar(999),
               DOSE_NO numeric,
               DOSE numeric(22,7),
               DOSE_UNIT_ID numeric,
-              LOT_NO varchar(20),
+              LOT_NO varchar(999),
               MANUFACTURER_ID numeric,
               SORT_ID numeric,
               PARENT_SEQ_NUM numeric,
-              VACC_DATE_PARTIAL varchar(20),
+              VACC_DATE_PARTIAL varchar(999),
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
@@ -2475,14 +2475,14 @@
               CASE_ID numeric NOT NULL,
               SEQ_NUM numeric NOT NULL,
               PATIENT numeric,
-              VACCINE varchar(40),
+              VACCINE varchar(999),
               DOSE_NO numeric,
               AGE numeric(22,7),
               AGE_UNIT_ID numeric,
-              ADVERSE_EVENT varchar(50),
+              ADVERSE_EVENT varchar(999),
               SORT_ID numeric,
-              ADVERSE_EVENT_J varchar(50),
-              VACCINE_J varchar(40),
+              ADVERSE_EVENT_J varchar(999),
+              VACCINE_J varchar(999),
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
@@ -2497,32 +2497,32 @@
               ENTERPRISE_ID numeric NOT NULL,
               CASE_ID numeric NOT NULL,
               VACC_AT_ID numeric,
-              VACC_STATE varchar(10),
-              VACC_COUNTY varchar(20),
+              VACC_STATE varchar(999),
+              VACC_COUNTY varchar(999),
               PURCHASE_ID numeric,
               VACC_ER_VISIT numeric,
-              ADMIN_BY varchar(40),
-              PHYSICIAN varchar(40),
-              FACILITY varchar(40),
-              ADDRESS varchar(120),
-              CITY varchar(30),
-              STATE varchar(10),
-              POSTAL_CODE varchar(10),
-              PHONE varchar(20),
+              ADMIN_BY varchar(999),
+              PHYSICIAN varchar(999),
+              FACILITY varchar(999),
+              ADDRESS varchar(999),
+              CITY varchar(999),
+              STATE varchar(999),
+              POSTAL_CODE varchar(999),
+              PHONE varchar(999),
               RELATION_TO_PATIENT numeric,
               REPORTED_PREVIOUSLY numeric,
-              ILLNESS varchar(50),
-              VAERS_NUMBER varchar(20),
+              ILLNESS varchar(999),
+              VAERS_NUMBER varchar(999),
               PROLONGED_HOSP numeric(1),
-              ADDRESS_J varchar(120),
-              ADMIN_BY_J varchar(40),
-              CITY_J varchar(30),
-              FACILITY_J varchar(40),
-              ILLNESS_J varchar(50),
-              PHYSICIAN_J varchar(40),
-              STATE_J varchar(10),
-              VACC_COUNTY_J varchar(20),
-              VACC_STATE_J varchar(10),
+              ADDRESS_J varchar(999),
+              ADMIN_BY_J varchar(999),
+              CITY_J varchar(999),
+              FACILITY_J varchar(999),
+              ILLNESS_J varchar(999),
+              PHYSICIAN_J varchar(999),
+              STATE_J varchar(999),
+              VACC_COUNTY_J varchar(999),
+              VACC_STATE_J varchar(999),
               DELETED timestamp,
               DLP_REVISION_NUMBER numeric NOT NULL,
               REVISION_DELETE_FLAG numeric,
@@ -2587,17 +2587,17 @@

     { "rm_cfg_dictionaries_global"
           "CREATE TABLE rm_cfg_dictionaries_global (
-              NAME varchar(30),
+              NAME varchar(999),
               DIALOG_NUM numeric,
-              SQL_DRUG varchar(4000),
-              SQL_INDICATION varchar(4000),
-              SQL_EVENT_SIMPLE varchar(4000),
-              SQL_EVENT_PART1 varchar(4000),
-              SQL_EVENT_PART2 varchar(4000),
-              VERSION_NUMBER varchar(20),
-              DICTIONARY_SOURCE varchar(14),
-              DELETED timestamp,
-              SCHEMA_OWNER varchar(30),
+              SQL_DRUG varchar(999),
+              SQL_INDICATION varchar(999),
+              SQL_EVENT_SIMPLE varchar(999),
+              SQL_EVENT_PART1 varchar(999),
+              SQL_EVENT_PART2 varchar(999),
+              VERSION_NUMBER varchar(999),
+              DICTIONARY_SOURCE varchar(999),
+              DELETED timestamp,
+              SCHEMA_OWNER varchar(999),
               GLOBAL_DICT_ID numeric NOT NULL,
               PRIMARY KEY (GLOBAL_DICT_ID)
           )" }
@@ -2617,8 +2617,8 @@
               ENTERPRISE_ID numeric NOT NULL,
               REPORT_FORM_ID numeric NOT NULL,
               SHOW_HEADERFOOTER numeric NOT NULL,
-              LANDSCAPE_TEMPLATE varchar(100),
-              PORTRAIT_TEMPLATE varchar(100),
+              LANDSCAPE_TEMPLATE varchar(999),
+              PORTRAIT_TEMPLATE varchar(999),
               LANDSCAPE_BLOB_SIZE numeric,
               PORTRAIT_BLOB_SIZE numeric,
               SHOW_PAGE_NUMBERING numeric,
@@ -2631,8 +2631,8 @@
           "CREATE TABLE rm_cfg_dsr_template_variables (
               ENTERPRISE_ID numeric NOT NULL,
               ID numeric NOT NULL,
-              VARIABLE_NAME varchar(200),
-              SQL_QUERY varchar(4000),
+              VARIABLE_NAME varchar(999),
+              SQL_QUERY varchar(999),
               REPORT_RELATED numeric(1),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,ID)
@@ -2642,13 +2642,13 @@
           "CREATE TABLE rm_cfg_groups (
               ENTERPRISE_ID numeric NOT NULL,
               GROUP_ID numeric NOT NULL,
-              GROUP_NAME varchar(40),
-              EMAIL_ADDR varchar(100),
-              CASE_ACCESS varchar(1000),
-              MENU_ACCESS varchar(1000),
+              GROUP_NAME varchar(999),
+              EMAIL_ADDR varchar(999),
+              CASE_ACCESS varchar(999),
+              MENU_ACCESS varchar(999),
               DISABLED numeric,
-              LISTEDNESS_ACCESS varchar(1000),
-              EMAIL_SUPERVISOR varchar(100),
+              LISTEDNESS_ACCESS varchar(999),
+              EMAIL_SUPERVISOR varchar(999),
               LAM numeric(2),
               DEFAULT_REPORT_FORM_ID numeric,
               DELETED timestamp,
@@ -2676,7 +2676,7 @@
               ENTERPRISE_ID numeric NOT NULL,
               SEQ_NUM numeric NOT NULL,
               GROUP_ID numeric NOT NULL,
-              PROTOCOL_NUM varchar(40),
+              PROTOCOL_NUM varchar(999),
               STUDY_KEY numeric,
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,SEQ_NUM)
@@ -2698,7 +2698,7 @@
               ID numeric NOT NULL,
               CASE_ID numeric NOT NULL,
               USER_ID numeric NOT NULL,
-              REASON varchar(100),
+              REASON varchar(999),
               REQUEST_DATE timestamp,
               PROCESSED numeric(1) NOT NULL,
               DELETED timestamp,
@@ -2727,9 +2727,9 @@
     { "rm_cfg_medwatch_codes"
           "CREATE TABLE rm_cfg_medwatch_codes (
               DIALOG numeric(10) NOT NULL,
-              VALUE varchar(4) NOT NULL,
-              DESCRIPTION varchar(400) NOT NULL,
-              DEFINITION varchar(500),
+              VALUE varchar(999) NOT NULL,
+              DESCRIPTION varchar(999) NOT NULL,
+              DEFINITION varchar(999),
               SORTBY numeric(10,2) NOT NULL,
               PRIMARY KEY (DIALOG,VALUE,SORTBY)
           )" }
@@ -2738,7 +2738,7 @@
           "CREATE TABLE rm_cfg_mem_report (
               ENTERPRISE_ID numeric NOT NULL,
               ID numeric(10) NOT NULL,
-              NAME varchar(50) NOT NULL,
+              NAME varchar(999) NOT NULL,
               USER_ID numeric NOT NULL,
               REPORT_TYPE numeric,
               XT_ROW numeric,
@@ -2752,7 +2752,7 @@
               AC_ID numeric,
               LOGO numeric,
               SHADING numeric,
-              TITLE varchar(100),
+              TITLE varchar(999),
               START_DATE timestamp,
               END_DATE timestamp,
               RELATIVITY numeric,
@@ -2761,11 +2761,11 @@
               LS_SORT numeric,
               FOR_PERIODIC numeric(1),
               DELETED timestamp,
-              SUB_TITLE varchar(80),
-              FOOTER varchar(80),
+              SUB_TITLE varchar(999),
+              FOOTER varchar(999),
               CREATION_DATE numeric,
-              LS_GROUPINGS varchar(300),
-              DESCRIPTION varchar(200),
+              LS_GROUPINGS varchar(999),
+              DESCRIPTION varchar(999),
               LAST_MODIFIED_TIME timestamp,
               XT_ROW3 numeric(10),
               XT_COLUMN3 numeric(10),
@@ -2777,7 +2777,7 @@
           "CREATE TABLE rm_cfg_narrative_template (
               ENTERPRISE_ID numeric NOT NULL,
               TEMPLATE_ID numeric NOT NULL,
-              TEMPLATE_NAME varchar(40),
+              TEMPLATE_NAME varchar(999),
               LANGUAGE numeric,
               RETIRED numeric,
               DELETED timestamp,
@@ -2801,13 +2801,13 @@
               REPORT_FORM_ID numeric NOT NULL,
               AGENCY_ID numeric,
               INGREDIENT_ID numeric,
-              INDICATION varchar(50),
+              INDICATION varchar(999),
               FORMULATION_ID numeric,
-              REPORT_NUM varchar(50),
-              REPORT_TITLE varchar(100),
-              INGREDIENT varchar(120),
-              TRADE_NAME varchar(400),
-              APPROVAL varchar(100),
+              REPORT_NUM varchar(999),
+              REPORT_TITLE varchar(999),
+              INGREDIENT varchar(999),
+              TRADE_NAME varchar(999),
+              APPROVAL varchar(999),
               INGD_TRD_APRV numeric(10),
               AC_ID numeric,
               INCL_OPTIONS numeric(10),
@@ -2820,7 +2820,7 @@
               DUE_DAYS numeric(10),
               AUTO_GEN_PREG numeric(10),
               AUTO_DAYS numeric(10),
-              AUTO_TIME varchar(5),
+              AUTO_TIME varchar(999),
               GROUP_ID numeric,
               LANGUAGE numeric(10),
               PRINT_CONFIG numeric,
@@ -2830,22 +2830,22 @@
               SUMMARY numeric,
               GROUP_BY2 numeric,
               GROUP_BY3 numeric,
-              CATEGORY varchar(50),
+              CATEGORY varchar(999),
               SHARED numeric,
               USER_ID numeric,
               HIT_LIST numeric(1),
               SORT_BY2 numeric,
               SORT_BY3 numeric,
               GROUP_BY4 numeric,
-              TITLE_PER_DRUG varchar(50),
-              TITLE_PER_DRUG_OPTION varchar(50),
+              TITLE_PER_DRUG varchar(999),
+              TITLE_PER_DRUG_OPTION varchar(999),
               REASSESSMENT numeric(3),
-              FOOTER varchar(120),
-              FDA_SHEETNAME varchar(40),
+              FOOTER varchar(999),
+              FDA_SHEETNAME varchar(999),
               FDA_AGENCY_ID numeric,
-              SUB_CATEGORY varchar(50),
+              SUB_CATEGORY varchar(999),
               SOLICITED_AC_ID numeric,
-              SOLICITED_RPT_TITLE varchar(60),
+              SOLICITED_RPT_TITLE varchar(999),
               SOLICITED_HIT_LIST numeric(1),
               PREV_REPORT_START_DT timestamp,
               MESSAGE_TYPE_ID numeric,
@@ -2856,11 +2856,11 @@
               LAST_MODIFIED_USER_ID numeric,
               CREATE_TIME timestamp,
               UPDATE_TIME timestamp,
-              JUSTIFICATION_TEXT varchar(1000),
+              JUSTIFICATION_TEXT varchar(999),
               PRINT_PAGE_NUM numeric,
-              JPN_APPROVAL varchar(100),
-              CSPS_DATE varchar(100),
-              CTPCS_DATE varchar(100),
+              JPN_APPROVAL varchar(999),
+              CSPS_DATE varchar(999),
+              CTPCS_DATE varchar(999),
               ENABLE_DELIV_QTY numeric(1),
               PRINT_ALL_AGENCY numeric,
               PRINT_ALL_ANOTHER_NDA numeric(1) NOT NULL,
@@ -2884,7 +2884,7 @@
               OPTIONS numeric(4),
               DELETED timestamp,
               SORT_ID numeric(2),
-              FIELD_TEXT varchar(250),
+              FIELD_TEXT varchar(999),
               PRIMARY KEY (ENTERPRISE_ID,ID)
           )" }

@@ -2900,7 +2900,7 @@
               RELATED numeric(1),
               HCP numeric(1),
               DATASHEET numeric,
-              SHEET_NAME varchar(40),
+              SHEET_NAME varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,REPORT_TYPE)
           )" }
@@ -2914,7 +2914,7 @@
               START_MONTH numeric(8),
               END_MONTH numeric(8),
               SUBMITTED numeric(1),
-              TOTAL_DELIV_QTY varchar(15),
+              TOTAL_DELIV_QTY varchar(999),
               TOTAL_DELIV_QTY_UNIT_ID numeric,
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,ID,REPORT_FORM_ID)
@@ -2936,12 +2936,12 @@
               ENTERPRISE_ID numeric NOT NULL,
               PLACE_ID numeric NOT NULL,
               PLACE_HOLDER_TYPE numeric,
-              PLACE_HOLDER varchar(40),
-              SQL_QUERY varchar(4000),
-              DELETED timestamp,
-              ORDERBY_CLAUSE1 varchar(200),
-              ORDERBY_CLAUSE2 varchar(200),
-              SQL_QUERY_J varchar(4000),
+              PLACE_HOLDER varchar(999),
+              SQL_QUERY varchar(999),
+              DELETED timestamp,
+              ORDERBY_CLAUSE1 varchar(999),
+              ORDERBY_CLAUSE2 varchar(999),
+              SQL_QUERY_J varchar(999),
               PRIMARY KEY (ENTERPRISE_ID,PLACE_ID)
           )" }

@@ -2975,7 +2975,7 @@
               REG_RPT_RULES_ID numeric NOT NULL,
               COUNTRY_ID numeric,
               LICENSE_TYPE_ID numeric,
-              TITLE varchar(40),
+              TITLE varchar(999),
               PERIODIC numeric,
               IND_STUDIES numeric,
               REPORT_FORM_ID numeric,
@@ -3036,11 +3036,11 @@
           "CREATE TABLE rm_cfg_rpt_wf_states (
               ENTERPRISE_ID numeric NOT NULL,
               REPORT_STATE_ID numeric NOT NULL,
-              STATE_DESC varchar(30),
-              STATE_NAME varchar(30),
-              DELETED timestamp,
-              STATE_DESC_J varchar(30),
-              STATE_NAME_J varchar(30),
+              STATE_DESC varchar(999),
+              STATE_NAME varchar(999),
+              DELETED timestamp,
+              STATE_DESC_J varchar(999),
+              STATE_NAME_J varchar(999),
               PRIMARY KEY (ENTERPRISE_ID,REPORT_STATE_ID)
           )" }

@@ -3049,18 +3049,18 @@
               ENTERPRISE_ID numeric NOT NULL,
               TEMPLATE_ID numeric NOT NULL,
               BLOB_SEQ numeric(10) NOT NULL,
-              NAME varchar(40),
+              NAME varchar(999),
               SHOW numeric,
-              LETTER_SCHED varchar(30),
+              LETTER_SCHED varchar(999),
               ACTION_SCHED numeric,
-              LETTER_PATH varchar(200),
+              LETTER_PATH varchar(999),
               BLOBSIZE numeric,
               REG_RPT_COVER numeric,
               DELETED timestamp,
               ACTION_TYPE_ID numeric,
-              RETURN_EMAIL_ADDRESS varchar(255),
+              RETURN_EMAIL_ADDRESS varchar(999),
               AC_ID numeric,
-              NAME_J varchar(40),
+              NAME_J varchar(999),
               PRIMARY KEY (ENTERPRISE_ID,TEMPLATE_ID,BLOB_SEQ)
           )" }

@@ -3068,10 +3068,10 @@
           "CREATE TABLE rm_cfg_users (
               ENTERPRISE_ID numeric NOT NULL,
               USER_ID numeric NOT NULL,
-              USER_FULLNAME varchar(64),
-              USER_NAME varchar(64),
-              USER_PASSWORD varchar(1000),
-              USER_EMAIL varchar(100),
+              USER_FULLNAME varchar(999),
+              USER_NAME varchar(999),
+              USER_PASSWORD varchar(999),
+              USER_EMAIL varchar(999),
               WORKFLOW_MGR numeric,
               ACCOUNT_DISABLED numeric,
               FORCE_EXPIRE numeric,
@@ -3093,7 +3093,7 @@
               DELETED timestamp,
               LOGIN_COUNT numeric NOT NULL,
               SECURITY_DISABLED numeric NOT NULL,
-              SECURITY_DISABLED_TEXT varchar(400),
+              SECURITY_DISABLED_TEXT varchar(999),
               ROUTE_ON_CLOSE numeric,
               LDAP_USER numeric,
               ESM_USER numeric,
@@ -3104,16 +3104,16 @@
               COPY_CONFIG numeric,
               GL_ENT_MGMT_ACCESS numeric NOT NULL,
               GL_USR_MGMT_ACCESS numeric NOT NULL,
-              MENU_ACCESS varchar(2000),
-              SITE_NO_ACCESS varchar(2000),
+              MENU_ACCESS varchar(999),
+              SITE_NO_ACCESS varchar(999),
               WL_ACT_ITEM_ACCESS numeric NOT NULL,
               WL_CONTACTS_ACCESS numeric NOT NULL,
               WL_NEW_ACCESS numeric NOT NULL,
               WL_OPEN_ACCESS numeric NOT NULL,
               DEOPTIMIZER_COUNTER numeric,
               GLOBAL_ADMIN numeric NOT NULL,
-              HASH_ALGO varchar(30),
-              SALT varchar(30),
+              HASH_ALGO varchar(999),
+              SALT varchar(999),
               PRIMARY KEY (ENTERPRISE_ID,USER_ID)
           )" }

@@ -3141,8 +3141,8 @@

     { "rm_cfg_user_enterprise_apps"
           "CREATE TABLE rm_cfg_user_enterprise_apps (
-              USER_NAME varchar(64) NOT NULL,
-              APP_NAME varchar(100) NOT NULL,
+              USER_NAME varchar(999) NOT NULL,
+              APP_NAME varchar(999) NOT NULL,
               SECURITY_LEVEL numeric,
               ENTERPRISE_ID numeric NOT NULL,
               PRIMARY KEY (ENTERPRISE_ID,USER_NAME,APP_NAME)
@@ -3168,7 +3168,7 @@
               AC_ID numeric,
               EXCLUSIVE_FLAG numeric,
               EMAIL_FLAG numeric,
-              DESCRIPTION varchar(80),
+              DESCRIPTION varchar(999),
               SORT_ID numeric,
               NORMAL_TIME numeric(8,2),
               MAX_TIME numeric(8,2),
@@ -3176,8 +3176,8 @@
               LOCK_CASE numeric,
               REQUIRE_PASSWORD numeric,
               PRODUCT_GROUP_ID numeric,
-              UD_TEXT_1 varchar(100),
-              UD_TEXT_2 varchar(100),
+              UD_TEXT_1 varchar(999),
+              UD_TEXT_2 varchar(999),
               RESTRICT_WORKFLOW_GROUP numeric,
               UNIT numeric,
               PRIMARY KEY (ENTERPRISE_ID,SEQ_NUM)
@@ -3187,8 +3187,8 @@
           "CREATE TABLE rm_cfg_workflow_states (
               ENTERPRISE_ID numeric NOT NULL,
               STATE_ID numeric NOT NULL,
-              STATE_NAME varchar(30),
-              STATE_DESC varchar(100),
+              STATE_NAME varchar(999),
+              STATE_DESC varchar(999),
               SORT_ID numeric,
               DELETED timestamp,
               SITE_ID numeric,
@@ -3200,7 +3200,7 @@
     { "rm_cl_autopsy_results"
           "CREATE TABLE rm_cl_autopsy_results (
               ID numeric NOT NULL,
-              RESULTS varchar(35),
+              RESULTS varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ID)
           )" }
@@ -3208,7 +3208,7 @@
     { "rm_cl_bfarm_causality"
           "CREATE TABLE rm_cl_bfarm_causality (
               ID numeric NOT NULL,
-              CAUSALITY varchar(35) NOT NULL,
+              CAUSALITY varchar(999) NOT NULL,
               DELETED timestamp,
               PRIMARY KEY (ID)
           )" }
@@ -3216,7 +3216,7 @@
     { "rm_cl_device_deliv_type"
           "CREATE TABLE rm_cl_device_deliv_type (
               ID numeric NOT NULL,
-              TYPE varchar(24),
+              TYPE varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ID)
           )" }
@@ -3224,7 +3224,7 @@
     { "rm_cl_device_evaluation"
           "CREATE TABLE rm_cl_device_evaluation (
               ID numeric NOT NULL,
-              DEV_EVAL varchar(24),
+              DEV_EVAL varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ID)
           )" }
@@ -3232,7 +3232,7 @@
     { "rm_cl_device_operator"
           "CREATE TABLE rm_cl_device_operator (
               ID numeric NOT NULL,
-              DEV_OPER varchar(19),
+              DEV_OPER varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ID)
           )" }
@@ -3240,7 +3240,7 @@
     { "rm_cl_device_usage"
           "CREATE TABLE rm_cl_device_usage (
               ID numeric NOT NULL,
-              DEV_USAGE varchar(7),
+              DEV_USAGE varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ID)
           )" }
@@ -3248,7 +3248,7 @@
     { "rm_cl_followup_type"
           "CREATE TABLE rm_cl_followup_type (
               ID numeric NOT NULL,
-              TYPE varchar(75),
+              TYPE varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ID)
           )" }
@@ -3256,8 +3256,8 @@
     { "rm_cl_jpn_drug_code_type"
           "CREATE TABLE rm_cl_jpn_drug_code_type (
               DRUG_CODE_ID numeric NOT NULL,
-              DRUG_CODE varchar(200),
-              DRUG_CODE_J varchar(200),
+              DRUG_CODE varchar(999),
+              DRUG_CODE_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (DRUG_CODE_ID)
           )" }
@@ -3265,7 +3265,7 @@
     { "rm_cl_mfr_evaluation"
           "CREATE TABLE rm_cl_mfr_evaluation (
               ID numeric NOT NULL,
-              EVALUATION varchar(51),
+              EVALUATION varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ID)
           )" }
@@ -3273,8 +3273,8 @@
     { "rm_cl_pmda_device_use"
           "CREATE TABLE rm_cl_pmda_device_use (
               USE_ID numeric NOT NULL,
-              USE varchar(20),
-              USE_J varchar(20),
+              USE varchar(999),
+              USE_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (USE_ID)
           )" }
@@ -3283,14 +3283,14 @@
           "CREATE TABLE rm_cl_prev_use (
               ID numeric NOT NULL,
               DELETED timestamp,
-              PREV_USE varchar(25),
+              PREV_USE varchar(999),
               PRIMARY KEY (ID)
           )" }

     { "rm_cl_rechall_outcome"
           "CREATE TABLE rm_cl_rechall_outcome (
               ID numeric NOT NULL,
-              OUTCOME varchar(16),
+              OUTCOME varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ID)
           )" }
@@ -3298,7 +3298,7 @@
     { "rm_cl_remedial_action"
           "CREATE TABLE rm_cl_remedial_action (
               ID numeric NOT NULL,
-              ACTION varchar(106),
+              ACTION varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ID)
           )" }
@@ -3306,14 +3306,14 @@
     { "rm_cl_report_scheduling"
           "CREATE TABLE rm_cl_report_scheduling (
               ID numeric NOT NULL,
-              RESULTS varchar(35),
+              RESULTS varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ID)
           )" }

     { "rm_cl_study_product_type"
           "CREATE TABLE rm_cl_study_product_type (
-              PROD_TYPE_NAME varchar(50),
+              PROD_TYPE_NAME varchar(999),
               PROD_TYPE_ID numeric NOT NULL,
               PRIMARY KEY (PROD_TYPE_ID)
           )" }
@@ -3321,7 +3321,7 @@
     { "rm_cl_subject"
           "CREATE TABLE rm_cl_subject (
               ID numeric NOT NULL,
-              SUBJECT varchar(30) NOT NULL,
+              SUBJECT varchar(999) NOT NULL,
               DELETED timestamp,
               PRIMARY KEY (ID)
           )" }
@@ -3329,7 +3329,7 @@
     { "rm_cl_term_type"
           "CREATE TABLE rm_cl_term_type (
               ID numeric NOT NULL,
-              TYPE varchar(100),
+              TYPE varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ID)
           )" }
@@ -3337,14 +3337,14 @@
     { "rm_cl_trimester_status"
           "CREATE TABLE rm_cl_trimester_status (
               ID numeric NOT NULL,
-              STATUS varchar(100),
+              STATUS varchar(999),
               PRIMARY KEY (ID)
           )" }

     { "rm_cl_usage_of_device"
           "CREATE TABLE rm_cl_usage_of_device (
               ID numeric NOT NULL,
-              USAGE_OF_DEVICE varchar(200),
+              USAGE_OF_DEVICE varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ID)
           )" }
@@ -3352,10 +3352,10 @@
     { "rm_cmn_lookup"
           "CREATE TABLE rm_cmn_lookup (
               ID numeric(1) NOT NULL,
-              STATE2 varchar(10),
-              STATE3 varchar(10),
-              STATE4 varchar(10),
-              DRUG_TYPE varchar(20),
+              STATE2 varchar(999),
+              STATE3 varchar(999),
+              STATE4 varchar(999),
+              DRUG_TYPE varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ID)
           )" }
@@ -3363,18 +3363,18 @@
     { "rm_cmn_profile_enterprise"
           "CREATE TABLE rm_cmn_profile_enterprise (
               ENTERPRISE_ID numeric NOT NULL,
-              SECTION varchar(300) NOT NULL,
-              KEY varchar(300) NOT NULL,
-              VALUE varchar(1000),
-              TREE_NAME varchar(100),
+              SECTION varchar(999) NOT NULL,
+              KEY varchar(999) NOT NULL,
+              VALUE varchar(999),
+              TREE_NAME varchar(999),
               KEY_TYPE numeric(2),
-              KEY_LABEL varchar(500),
-              KEY_OPTIONS varchar(1000),
-              LINK_TABLE varchar(100),
-              LINK_COLUMN_SEQ varchar(100),
-              LINK_COLUMN_DISPLAY varchar(100),
-              HELP_TEXT_TREE_NAME varchar(300),
-              NEXT_KEY varchar(300),
+              KEY_LABEL varchar(999),
+              KEY_OPTIONS varchar(999),
+              LINK_TABLE varchar(999),
+              LINK_COLUMN_SEQ varchar(999),
+              LINK_COLUMN_DISPLAY varchar(999),
+              HELP_TEXT_TREE_NAME varchar(999),
+              NEXT_KEY varchar(999),
               SORT_ORDER numeric,
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,SECTION,KEY)
@@ -3382,18 +3382,18 @@

     { "rm_cmn_profile_global"
           "CREATE TABLE rm_cmn_profile_global (
-              SECTION varchar(300) NOT NULL,
-              KEY varchar(300) NOT NULL,
-              VALUE varchar(1000),
-              TREE_NAME varchar(100),
+              SECTION varchar(999) NOT NULL,
+              KEY varchar(999) NOT NULL,
+              VALUE varchar(999),
+              TREE_NAME varchar(999),
               KEY_TYPE numeric(2),
-              KEY_LABEL varchar(500),
-              KEY_OPTIONS varchar(1000),
-              LINK_TABLE varchar(100),
-              LINK_COLUMN_SEQ varchar(100),
-              LINK_COLUMN_DISPLAY varchar(100),
-              HELP_TEXT_TREE_NAME varchar(300),
-              NEXT_KEY varchar(300),
+              KEY_LABEL varchar(999),
+              KEY_OPTIONS varchar(999),
+              LINK_TABLE varchar(999),
+              LINK_COLUMN_SEQ varchar(999),
+              LINK_COLUMN_DISPLAY varchar(999),
+              HELP_TEXT_TREE_NAME varchar(999),
+              NEXT_KEY varchar(999),
               SORT_ORDER numeric,
               DELETED timestamp,
               PRIMARY KEY (SECTION,KEY)
@@ -3441,22 +3441,22 @@
               STATUS numeric(4),
               AWARE_METHOD numeric,
               ESM_REPORT_ID numeric,
-              TRACKING_NUM varchar(30),
-              EVENT varchar(250),
-              BODY_SYS varchar(250),
-              STATUS_TEXT varchar(200),
-              GENERATION_ERROR varchar(1000),
-              SUBMIT_NOTES varchar(1000),
-              NON_SUBMIT_REASON varchar(1000),
+              TRACKING_NUM varchar(999),
+              EVENT varchar(999),
+              BODY_SYS varchar(999),
+              STATUS_TEXT varchar(999),
+              GENERATION_ERROR varchar(999),
+              SUBMIT_NOTES varchar(999),
+              NON_SUBMIT_REASON varchar(999),
               DELETED timestamp,
               PROTECT numeric(1),
               COMMENT_TYPE_ID numeric(10),
               REF_TYPE_ID numeric,
               SOURCE_REPORT_ID numeric,
-              DOCUMENTUM_ID varchar(200),
+              DOCUMENTUM_ID varchar(999),
               MARK_AS_SUBMITTED numeric(1),
               NOTIFICATION numeric,
-              DOCUMENTUM_ID_PUBLISH varchar(200),
+              DOCUMENTUM_ID_PUBLISH varchar(999),
               PROD_SEQ_NUM numeric,
               SCHEDULED_BY_ID numeric,
               REPORT_FORM_TYPE numeric,
@@ -3468,10 +3468,10 @@
               BLIND_STUDY_PRODUCT numeric(1),
               NULLIFICATION numeric(1),
               PREV_ESM_RPT_ID numeric,
-              NULLIFICATION_REASON varchar(1000),
+              NULLIFICATION_REASON varchar(999),
               NO_FOLLOWUP_DOWNGRADE numeric,
-              EVENT_J varchar(250),
-              BODY_SYS_J varchar(250),
+              EVENT_J varchar(999),
+              BODY_SYS_J varchar(999),
               RPT_COMMENT varchar(999),
               GROUP_2_COUNTRY_ADJUST_DAYS numeric,
               PRIMARY KEY (ENTERPRISE_ID,REG_REPORT_ID)
@@ -3480,7 +3480,7 @@
     { "rm_code_list_code_attributes"
           "CREATE TABLE rm_code_list_code_attributes (
               ENTERPRISE_ID numeric NOT NULL,
-              CODE_LIST_ID varchar(100) NOT NULL,
+              CODE_LIST_ID varchar(999) NOT NULL,
               CODE numeric NOT NULL,
               PROTECTED numeric(1),
               LAST_UPDATE_TIME timestamp,
@@ -3493,10 +3493,10 @@
     { "rm_code_list_detail_discrete"
           "CREATE TABLE rm_code_list_detail_discrete (
               ENTERPRISE_ID numeric NOT NULL,
-              CODE_LIST_ID varchar(100) NOT NULL,
-              DECODE_CONTEXT varchar(20) NOT NULL,
+              CODE_LIST_ID varchar(999) NOT NULL,
+              DECODE_CONTEXT varchar(999) NOT NULL,
               CODE numeric NOT NULL,
-              DISPLAY_VALUE varchar(1000),
+              DISPLAY_VALUE varchar(999),
               PREFERRED numeric(1),
               SORT numeric,
               LAST_UPDATE_TIME timestamp,
@@ -3506,10 +3506,10 @@
     { "rm_code_list_master"
           "CREATE TABLE rm_code_list_master (
               ENTERPRISE_ID numeric NOT NULL,
-              CODE_LIST_ID varchar(100) NOT NULL,
-              CODE_LIST_DESC varchar(1000),
-              SRC_TABLE_NAME varchar(30),
-              SRC_TABLE_FILTER varchar(100),
+              CODE_LIST_ID varchar(999) NOT NULL,
+              CODE_LIST_DESC varchar(999),
+              SRC_TABLE_NAME varchar(999),
+              SRC_TABLE_FILTER varchar(999),
               LAST_UPDATE_TIME timestamp,
               DATA_SOURCE numeric(1),
               PRIMARY KEY (ENTERPRISE_ID,CODE_LIST_ID)
@@ -3519,11 +3519,11 @@
           "CREATE TABLE rm_lm_accidental_exposure (
               ENTERPRISE_ID numeric NOT NULL,
               ID numeric NOT NULL,
-              DESCRIPTION varchar(20) NOT NULL,
+              DESCRIPTION varchar(999) NOT NULL,
               DELETED timestamp,
               DISPLAY numeric,
               PROTECTED numeric,
-              DESCRIPTION_J varchar(20),
+              DESCRIPTION_J varchar(999),
               PRIMARY KEY (ENTERPRISE_ID,ID)
           )" }

@@ -3531,17 +3531,17 @@
           "CREATE TABLE rm_lm_action_item_type (
               ENTERPRISE_ID numeric NOT NULL,
               ACTION_TYPE_ID numeric NOT NULL,
-              ACTION_TYPE varchar(40) NOT NULL,
+              ACTION_TYPE varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
-              DESCRIPTION varchar(1000),
+              DESCRIPTION varchar(999),
               QUERY_ACTION numeric,
               AC_ID numeric,
               USER_GROUP numeric,
               DUE_DAYS numeric,
-              LETTER_PLACEHOLDR_CONTENT varchar(1000),
-              ACTION_TYPE_J varchar(40),
-              DESCRIPTION_J varchar(1000),
+              LETTER_PLACEHOLDR_CONTENT varchar(999),
+              ACTION_TYPE_J varchar(999),
+              DESCRIPTION_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,ACTION_TYPE_ID)
           )" }
@@ -3550,11 +3550,11 @@
           "CREATE TABLE rm_lm_action_taken (
               ENTERPRISE_ID numeric NOT NULL,
               ACT_TAKEN_ID numeric NOT NULL,
-              ACTION_TAKEN varchar(30) NOT NULL,
+              ACTION_TAKEN varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
               E2B_CODE numeric,
-              ACTION_TAKEN_J varchar(30),
+              ACTION_TAKEN_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,ACT_TAKEN_ID)
           )" }
@@ -3565,12 +3565,12 @@
               ADMIN_ROUTE_ID numeric NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
-              SHORT_NAME varchar(5),
-              E2B_CODE varchar(6),
-              ROUTE varchar(15) NOT NULL,
-              ROUTE_DESC varchar(40),
-              ROUTE_DESC_J varchar(40),
-              ROUTE_J varchar(15),
+              SHORT_NAME varchar(999),
+              E2B_CODE varchar(999),
+              ROUTE varchar(999) NOT NULL,
+              ROUTE_DESC varchar(999),
+              ROUTE_DESC_J varchar(999),
+              ROUTE_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,ADMIN_ROUTE_ID)
           )" }
@@ -3579,13 +3579,13 @@
           "CREATE TABLE rm_lm_age_groups (
               ENTERPRISE_ID numeric NOT NULL,
               AGE_GROUP_ID numeric NOT NULL,
-              GROUP_NAME varchar(20) NOT NULL,
+              GROUP_NAME varchar(999) NOT NULL,
               GROUP_LOW numeric(22,7),
               GROUP_HIGH numeric(22,7),
               PROTECTED numeric,
               DISPLAY numeric,
               E2B_CODE numeric,
-              GROUP_NAME_J varchar(20),
+              GROUP_NAME_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,AGE_GROUP_ID)
           )" }
@@ -3594,12 +3594,12 @@
           "CREATE TABLE rm_lm_age_units (
               ENTERPRISE_ID numeric NOT NULL,
               AGE_UNIT_ID numeric NOT NULL,
-              AGE_UNIT varchar(10) NOT NULL,
+              AGE_UNIT varchar(999) NOT NULL,
               RELATION numeric,
               PROTECTED numeric,
               DISPLAY numeric,
               E2B_CODE numeric,
-              AGE_UNIT_J varchar(10),
+              AGE_UNIT_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,AGE_UNIT_ID)
           )" }
@@ -3608,29 +3608,29 @@
           "CREATE TABLE rm_lm_always_serious_term (
               ENTERPRISE_ID numeric NOT NULL,
               AST_ID numeric(22) NOT NULL,
-              AST_PT_CODE varchar(50),
-              AST_PT_TERM varchar(250),
-              AST_LLT_CODE varchar(50),
-              AST_LLT varchar(250),
-              AST_HLT_CODE varchar(50),
-              AST_HLT varchar(250),
-              AST_HLGT_CODE varchar(50),
-              AST_HLGT varchar(250),
-              AST_SOC_CODE varchar(50),
-              AST_SOC varchar(250),
+              AST_PT_CODE varchar(999),
+              AST_PT_TERM varchar(999),
+              AST_LLT_CODE varchar(999),
+              AST_LLT varchar(999),
+              AST_HLT_CODE varchar(999),
+              AST_HLT varchar(999),
+              AST_HLGT_CODE varchar(999),
+              AST_HLGT varchar(999),
+              AST_SOC_CODE varchar(999),
+              AST_SOC varchar(999),
               CODE_STATUS numeric,
               CODE_DICT numeric,
               DELETED timestamp,
-              AST_CODED varchar(250),
-              AST_REPTD varchar(250),
-              AST_REPTD_J varchar(250),
-              AST_CODED_J varchar(250),
-              AST_PT_TERM_J varchar(250),
-              AST_LLT_CODE_J varchar(50),
-              AST_LLT_J varchar(250),
-              AST_HLT_J varchar(250),
-              AST_HLGT_J varchar(250),
-              AST_SOC_J varchar(250),
+              AST_CODED varchar(999),
+              AST_REPTD varchar(999),
+              AST_REPTD_J varchar(999),
+              AST_CODED_J varchar(999),
+              AST_PT_TERM_J varchar(999),
+              AST_LLT_CODE_J varchar(999),
+              AST_LLT_J varchar(999),
+              AST_HLT_J varchar(999),
+              AST_HLGT_J varchar(999),
+              AST_SOC_J varchar(999),
               CODE_STATUS_J numeric,
               SYN_CODE numeric,
               SYN_CODE_J numeric,
@@ -3640,7 +3640,7 @@
     { "rm_lm_applications"
           "CREATE TABLE rm_lm_applications (
               APPLICATION_ID numeric NOT NULL,
-              APPLICATION_DESC varchar(50) NOT NULL,
+              APPLICATION_DESC varchar(999) NOT NULL,
               DELETED timestamp,
               PRIMARY KEY (APPLICATION_ID)
           )" }
@@ -3649,7 +3649,7 @@
           "CREATE TABLE rm_lm_attachment_type (
               ENTERPRISE_ID numeric NOT NULL,
               ATTACHMENT_ID numeric NOT NULL,
-              ATTACHMENT_DESC varchar(200),
+              ATTACHMENT_DESC varchar(999),
               DISPLAY numeric(1),
               PROTECTED numeric(1),
               DELETED timestamp,
@@ -3660,10 +3660,10 @@
           "CREATE TABLE rm_lm_birth_type (
               ENTERPRISE_ID numeric NOT NULL,
               BIRTH_TYPE_ID numeric NOT NULL,
-              BIRTH_TYPE varchar(35) NOT NULL,
+              BIRTH_TYPE varchar(999) NOT NULL,
               DISPLAY numeric,
               PROTECTED numeric,
-              BIRTH_TYPE_J varchar(35),
+              BIRTH_TYPE_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,BIRTH_TYPE_ID)
           )" }
@@ -3672,10 +3672,10 @@
           "CREATE TABLE rm_lm_case_classification (
               ENTERPRISE_ID numeric NOT NULL,
               CLASSIFICATION_ID numeric NOT NULL,
-              DESCRIPTION varchar(30) NOT NULL,
+              DESCRIPTION varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
-              DESCRIPTION_J varchar(30),
+              DESCRIPTION_J varchar(999),
               DELETED timestamp,
               E2B_CODE numeric,
               PRIMARY KEY (ENTERPRISE_ID,CLASSIFICATION_ID)
@@ -3685,11 +3685,11 @@
           "CREATE TABLE rm_lm_causality (
               ENTERPRISE_ID numeric NOT NULL,
               CAUSALITY_ID numeric NOT NULL,
-              CAUSALITY varchar(35) NOT NULL,
+              CAUSALITY varchar(999) NOT NULL,
               REPORTABILITY numeric,
               PROTECTED numeric,
               DISPLAY numeric,
-              CAUSALITY_J varchar(35),
+              CAUSALITY_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,CAUSALITY_ID)
           )" }
@@ -3708,10 +3708,10 @@
           "CREATE TABLE rm_lm_causality_source (
               ENTERPRISE_ID numeric NOT NULL,
               SOURCE_ID numeric NOT NULL,
-              SOURCE varchar(35),
+              SOURCE varchar(999),
               PROTECTED numeric,
               DISPLAY numeric,
-              SOURCE_J varchar(35),
+              SOURCE_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,SOURCE_ID)
           )" }
@@ -3720,11 +3720,11 @@
           "CREATE TABLE rm_lm_centers (
               ENTERPRISE_ID numeric NOT NULL,
               CENTER_ID numeric NOT NULL,
-              CENTER_NO varchar(20),
-              CENTER_NAME varchar(40),
-              ADDRESS varchar(120),
-              CENTER_NAME_J varchar(40),
-              CENTER_NO_J varchar(20),
+              CENTER_NO varchar(999),
+              CENTER_NAME varchar(999),
+              ADDRESS varchar(999),
+              CENTER_NAME_J varchar(999),
+              CENTER_NO_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,CENTER_ID)
           )" }
@@ -3733,11 +3733,11 @@
           "CREATE TABLE rm_lm_classification (
               ENTERPRISE_ID numeric NOT NULL,
               CLASSIFICATION_ID numeric NOT NULL,
-              CLASSIFICATION varchar(30) NOT NULL,
+              CLASSIFICATION varchar(999) NOT NULL,
               DISPLAY numeric(1),
               PROTECTED numeric(1),
               E2B_ADDITIONAL_DOC numeric,
-              CLASSIFICATION_J varchar(30),
+              CLASSIFICATION_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,CLASSIFICATION_ID)
           )" }
@@ -3756,10 +3756,10 @@
           "CREATE TABLE rm_lm_clinical_ref_types (
               ENTERPRISE_ID numeric NOT NULL,
               REF_TYPE_ID numeric NOT NULL,
-              REF_TYPE_DESC varchar(20),
+              REF_TYPE_DESC varchar(999),
               REG_NUM_SIZE numeric,
               PROTECTED numeric,
-              REF_TYPE_DESC_J varchar(20),
+              REF_TYPE_DESC_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,REF_TYPE_ID)
           )" }
@@ -3768,12 +3768,12 @@
           "CREATE TABLE rm_lm_condition_type (
               ENTERPRISE_ID numeric NOT NULL,
               CONDITION_TYPE_ID numeric NOT NULL,
-              COND_TYPE varchar(20) NOT NULL,
+              COND_TYPE varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
               DELETED timestamp,
               COND_CATEGORY numeric(1),
-              COND_TYPE_J varchar(20),
+              COND_TYPE_J varchar(999),
               PRIMARY KEY (ENTERPRISE_ID,CONDITION_TYPE_ID)
           )" }

@@ -3781,12 +3781,12 @@
           "CREATE TABLE rm_lm_contact_type (
               ENTERPRISE_ID numeric NOT NULL,
               CONTACT_ID numeric NOT NULL,
-              CONTACT_TYPE varchar(10) NOT NULL,
-              DESCRIPTION varchar(120),
+              CONTACT_TYPE varchar(999) NOT NULL,
+              DESCRIPTION varchar(999),
               DISPLAY numeric(4) NOT NULL,
               PROTECTED numeric(4) NOT NULL,
-              CONTACT_TYPE_J varchar(10),
-              DESCRIPTION_J varchar(120),
+              CONTACT_TYPE_J varchar(999),
+              DESCRIPTION_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,CONTACT_ID)
           )" }
@@ -3794,8 +3794,8 @@
     { "rm_lm_costart"
           "CREATE TABLE rm_lm_costart (
               ENTERPRISE_ID numeric NOT NULL,
-              CODE varchar(50) NOT NULL,
-              DESCRIPTION varchar(1000),
+              CODE varchar(999) NOT NULL,
+              DESCRIPTION varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,CODE)
           )" }
@@ -3804,15 +3804,15 @@
           "CREATE TABLE rm_lm_countries (
               ENTERPRISE_ID numeric NOT NULL,
               COUNTRY_ID numeric NOT NULL,
-              COUNTRY varchar(50) NOT NULL,
-              A2 varchar(2),
-              A3 varchar(3),
+              COUNTRY varchar(999) NOT NULL,
+              A2 varchar(999),
+              A3 varchar(999),
               NUM numeric,
               PROTECTED numeric,
               DELETED timestamp,
               COUNTRY_GROUP_ID numeric,
-              COUNTRY_GROUP varchar(50),
-              COUNTRY_J varchar(50),
+              COUNTRY_GROUP varchar(999),
+              COUNTRY_J varchar(999),
               GROUP_2_COUNTRY numeric,
               PRIMARY KEY (ENTERPRISE_ID,COUNTRY_ID)
           )" }
@@ -3821,7 +3821,7 @@
           "CREATE TABLE rm_lm_datasheet (
               ENTERPRISE_ID numeric NOT NULL,
               DATASHEET_ID numeric NOT NULL,
-              SHEET_NAME varchar(40),
+              SHEET_NAME varchar(999),
               CORE_SHEET numeric,
               FAMILY_ID numeric,
               DELETED timestamp,
@@ -3830,7 +3830,7 @@
               MAX_REVISION numeric,
               NO_LOCAL_ASSESSMENT numeric,
               INCLUDE_DATASHEET_ID numeric,
-              SHEET_NAME_J varchar(40),
+              SHEET_NAME_J varchar(999),
               NOTES varchar(999),
               PRIMARY KEY (ENTERPRISE_ID,DATASHEET_ID,REVISION)
           )" }
@@ -3850,12 +3850,12 @@
           "CREATE TABLE rm_lm_date_ranges (
               ENTERPRISE_ID numeric NOT NULL,
               RANGE_ID numeric NOT NULL,
-              RANGE_NAME varchar(20) NOT NULL,
+              RANGE_NAME varchar(999) NOT NULL,
               DURATION numeric,
               FROM_DATE timestamp,
               TO_DATE timestamp,
-              UNITS varchar(10),
-              RANGE_NAME_J varchar(20),
+              UNITS varchar(999),
+              RANGE_NAME_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,RANGE_ID)
           )" }
@@ -3864,10 +3864,10 @@
           "CREATE TABLE rm_lm_delivery_types (
               ENTERPRISE_ID numeric NOT NULL,
               DELIVERY_TYPE_ID numeric NOT NULL,
-              DELIVERY_TYPE varchar(30) NOT NULL,
+              DELIVERY_TYPE varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
-              DELIVERY_TYPE_J varchar(30),
+              DELIVERY_TYPE_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,DELIVERY_TYPE_ID)
           )" }
@@ -3876,8 +3876,8 @@
           "CREATE TABLE rm_lm_device_cur_status (
               ENTERPRISE_ID numeric NOT NULL,
               STATUS_ID numeric NOT NULL,
-              STATUS varchar(30),
-              STATUS_J varchar(30),
+              STATUS varchar(999),
+              STATUS_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,STATUS_ID)
           )" }
@@ -3886,8 +3886,8 @@
           "CREATE TABLE rm_lm_device_future_act (
               ENTERPRISE_ID numeric NOT NULL,
               ACTION_ID numeric NOT NULL,
-              ACTION varchar(30),
-              ACTION_J varchar(30),
+              ACTION varchar(999),
+              ACTION_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,ACTION_ID)
           )" }
@@ -3896,8 +3896,8 @@
           "CREATE TABLE rm_lm_device_mal_status (
               ENTERPRISE_ID numeric NOT NULL,
               STATUS_ID numeric NOT NULL,
-              STATUS varchar(10),
-              STATUS_J varchar(10),
+              STATUS varchar(999),
+              STATUS_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,STATUS_ID)
           )" }
@@ -3918,8 +3918,8 @@
           "CREATE TABLE rm_lm_device_rpt_category (
               ENTERPRISE_ID numeric NOT NULL,
               CATEGORY_ID numeric NOT NULL,
-              CATEGORY varchar(40),
-              CATEGORY_J varchar(40),
+              CATEGORY varchar(999),
+              CATEGORY_J varchar(999),
               DISPLAY numeric,
               PROTECTED numeric,
               DELETED timestamp,
@@ -3930,10 +3930,10 @@
           "CREATE TABLE rm_lm_device_subcomponents (
               ENTERPRISE_ID numeric NOT NULL,
               SUBCOMPONENT_ID numeric NOT NULL,
-              SUBCOMPONENT_NAME varchar(50),
+              SUBCOMPONENT_NAME varchar(999),
               DISPLAY numeric,
               PROTECTED numeric,
-              SUBCOMPONENT_NAME_J varchar(50),
+              SUBCOMPONENT_NAME_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,SUBCOMPONENT_ID)
           )" }
@@ -3942,10 +3942,10 @@
           "CREATE TABLE rm_lm_device_type (
               ENTERPRISE_ID numeric NOT NULL,
               DEVICE_TYPE_ID numeric NOT NULL,
-              DEVICE_TYPE_DESC varchar(50) NOT NULL,
+              DEVICE_TYPE_DESC varchar(999) NOT NULL,
               DISPLAY numeric,
               PROTECTED numeric,
-              DEVICE_TYPE_DESC_J varchar(50),
+              DEVICE_TYPE_DESC_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,DEVICE_TYPE_ID)
           )" }
@@ -3954,8 +3954,8 @@
           "CREATE TABLE rm_lm_device_use_duration (
               ENTERPRISE_ID numeric NOT NULL,
               DURATION_ID numeric NOT NULL,
-              DURATION varchar(10),
-              DURATION_J varchar(10),
+              DURATION varchar(999),
+              DURATION_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,DURATION_ID)
           )" }
@@ -3964,8 +3964,8 @@
           "CREATE TABLE rm_lm_dev_phase (
               ENTERPRISE_ID numeric NOT NULL,
               DEV_PHASE_ID numeric NOT NULL,
-              DEV_PHASE varchar(50),
-              DEV_PHASE_J varchar(50),
+              DEV_PHASE varchar(999),
+              DEV_PHASE_J varchar(999),
               E2B_CODE numeric(2),
               DISPLAY numeric(1),
               PROTECTED numeric(1),
@@ -3977,7 +3977,7 @@
           "CREATE TABLE rm_lm_dose_frequency (
               ENTERPRISE_ID numeric NOT NULL,
               FREQ_ID numeric NOT NULL,
-              FREQ varchar(15) NOT NULL,
+              FREQ varchar(999) NOT NULL,
               PROTECTED numeric,
               FREQ_VALUE numeric,
               DISPLAY numeric,
@@ -3985,7 +3985,7 @@
               SEPARATE_DOSAGE_NUMB_E2B numeric,
               INTERVAL_DOSAGE_UNIT_E2B numeric,
               INTERVAL_DOSAGE_DEF_E2B numeric,
-              FREQ_J varchar(15),
+              FREQ_J varchar(999),
               PRIMARY KEY (ENTERPRISE_ID,FREQ_ID)
           )" }

@@ -3993,14 +3993,14 @@
           "CREATE TABLE rm_lm_dose_units (
               ENTERPRISE_ID numeric NOT NULL,
               UNIT_ID numeric NOT NULL,
-              UNIT varchar(25) NOT NULL,
+              UNIT varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
               DOSE_UNIT_VALUE numeric,
-              E2B_CODE varchar(6),
+              E2B_CODE varchar(999),
               LAB_TEST_UNIT numeric,
               DOSAGE_UNIT numeric NOT NULL,
-              UNIT_J varchar(25),
+              UNIT_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,UNIT_ID)
           )" }
@@ -4010,9 +4010,9 @@
               ENTERPRISE_ID numeric NOT NULL,
               PER_RPT_TYPE numeric NOT NULL,
               SUB_RPT_ID numeric NOT NULL,
-              PER_BOOKMARK_NAME varchar(255),
-              TOC_NAME varchar(1000),
-              BOOKMARK_NAME varchar(255),
+              PER_BOOKMARK_NAME varchar(999),
+              TOC_NAME varchar(999),
+              BOOKMARK_NAME varchar(999),
               OVERLAY_REQD numeric,
               DISPLAY_SORT_ID numeric,
               INCL_FLAG numeric,
@@ -4026,12 +4026,12 @@
           "CREATE TABLE rm_lm_emperor (
               ENTERPRISE_ID numeric NOT NULL,
               EMPEROR_ID numeric NOT NULL,
-              EMPEROR_NAME varchar(10),
-              EMPEROR_NAME_J varchar(10),
+              EMPEROR_NAME varchar(999),
+              EMPEROR_NAME_J varchar(999),
               OFFICE_DATE_J timestamp,
               DISPLAY numeric(1),
               PROTECTED numeric(1),
-              DATE_ENTRY_ABBREV varchar(1),
+              DATE_ENTRY_ABBREV varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,EMPEROR_ID)
           )" }
@@ -4040,10 +4040,10 @@
           "CREATE TABLE rm_lm_ethnicity (
               ENTERPRISE_ID numeric NOT NULL,
               ETHNICITY_ID numeric NOT NULL,
-              ETHNICITY varchar(40) NOT NULL,
+              ETHNICITY varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
-              ETHNICITY_J varchar(40),
+              ETHNICITY_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,ETHNICITY_ID)
           )" }
@@ -4052,9 +4052,9 @@
           "CREATE TABLE rm_lm_evaluator_type (
               ENTERPRISE_ID numeric NOT NULL,
               EVALUATOR_TYPE_ID numeric NOT NULL,
-              EVALUATOR_TYPE varchar(25) NOT NULL,
+              EVALUATOR_TYPE varchar(999) NOT NULL,
               SITE_ID numeric,
-              EVALUATOR_TYPE_J varchar(25),
+              EVALUATOR_TYPE_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,EVALUATOR_TYPE_ID)
           )" }
@@ -4063,8 +4063,8 @@
           "CREATE TABLE rm_lm_event_group (
               ENTERPRISE_ID numeric NOT NULL,
               EG_ID numeric NOT NULL,
-              EVENT_GROUP_NAME varchar(250) NOT NULL,
-              EVENT_GROUP_NAME_J varchar(250),
+              EVENT_GROUP_NAME varchar(999) NOT NULL,
+              EVENT_GROUP_NAME_J varchar(999),
               DISPLAY numeric,
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,EG_ID)
@@ -4096,24 +4096,24 @@
               ENTERPRISE_ID numeric NOT NULL,
               TERM_ID numeric NOT NULL,
               EG_ID numeric NOT NULL,
-              PT varchar(250),
-              PT_J varchar(250),
-              PT_CODE varchar(50),
-              SOC varchar(250),
-              SOC_J varchar(250),
-              SOC_CODE varchar(50),
-              HLT varchar(250),
-              HLT_J varchar(250),
-              HLT_CODE varchar(50),
-              HLGT varchar(250),
-              HLGT_J varchar(250),
-              HLGT_CODE varchar(50),
+              PT varchar(999),
+              PT_J varchar(999),
+              PT_CODE varchar(999),
+              SOC varchar(999),
+              SOC_J varchar(999),
+              SOC_CODE varchar(999),
+              HLT varchar(999),
+              HLT_J varchar(999),
+              HLT_CODE varchar(999),
+              HLGT varchar(999),
+              HLGT_J varchar(999),
+              HLGT_CODE varchar(999),
               CODE_DICT numeric,
               TERM_TYPE numeric,
-              LLT varchar(250),
-              LLT_J varchar(250),
-              LLT_CODE varchar(50),
-              LLT_CODE_J varchar(50),
+              LLT varchar(999),
+              LLT_J varchar(999),
+              LLT_CODE varchar(999),
+              LLT_CODE_J varchar(999),
               CODE_STATUS numeric NOT NULL,
               CODE_STATUS_J numeric,
               DELETED timestamp,
@@ -4125,10 +4125,10 @@
               ENTERPRISE_ID numeric NOT NULL,
               EVT_CONSEQUENCE_ID numeric NOT NULL,
               PROTECTED numeric NOT NULL,
-              CONSEQUENCE varchar(100),
-              TERM varchar(250),
-              CONSEQUENCE_J varchar(100),
-              TERM_J varchar(250),
+              CONSEQUENCE varchar(999),
+              TERM varchar(999),
+              CONSEQUENCE_J varchar(999),
+              TERM_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,EVT_CONSEQUENCE_ID)
           )" }
@@ -4137,10 +4137,10 @@
           "CREATE TABLE rm_lm_evt_frequency (
               ENTERPRISE_ID numeric NOT NULL,
               EVT_FREQ_ID numeric NOT NULL,
-              EVT_FREQ varchar(15) NOT NULL,
+              EVT_FREQ varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
-              EVT_FREQ_J varchar(15),
+              EVT_FREQ_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,EVT_FREQ_ID)
           )" }
@@ -4149,10 +4149,10 @@
           "CREATE TABLE rm_lm_evt_intensity (
               ENTERPRISE_ID numeric NOT NULL,
               EVT_INTENSITY_ID numeric NOT NULL,
-              EVT_INTENSITY varchar(30) NOT NULL,
+              EVT_INTENSITY varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
-              EVT_INTENSITY_J varchar(30),
+              EVT_INTENSITY_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,EVT_INTENSITY_ID)
           )" }
@@ -4161,10 +4161,10 @@
           "CREATE TABLE rm_lm_evt_nature (
               ENTERPRISE_ID numeric NOT NULL,
               EVT_NATURE_ID numeric NOT NULL,
-              EVT_NATURE varchar(40) NOT NULL,
+              EVT_NATURE varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
-              EVT_NATURE_J varchar(40),
+              EVT_NATURE_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,EVT_NATURE_ID)
           )" }
@@ -4173,11 +4173,11 @@
           "CREATE TABLE rm_lm_evt_outcome (
               ENTERPRISE_ID numeric NOT NULL,
               EVT_OUTCOME_ID numeric NOT NULL,
-              EVT_OUTCOME varchar(50) NOT NULL,
+              EVT_OUTCOME varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
               E2B_CODE numeric,
-              EVT_OUTCOME_J varchar(50),
+              EVT_OUTCOME_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,EVT_OUTCOME_ID)
           )" }
@@ -4185,10 +4185,10 @@
     { "rm_lm_failure_code"
           "CREATE TABLE rm_lm_failure_code (
               ENTERPRISE_ID numeric NOT NULL,
-              FAILURE_CD varchar(6) NOT NULL,
-              FAILURE_DESC varchar(100),
-              FAILURE_CD_TYPE varchar(1),
-              FAILURE_CD_GROUP varchar(16),
+              FAILURE_CD varchar(999) NOT NULL,
+              FAILURE_DESC varchar(999),
+              FAILURE_CD_TYPE varchar(999),
+              FAILURE_CD_GROUP varchar(999),
               DELETED timestamp,
               FAILURE_DEF varchar(999),
               PRIMARY KEY (ENTERPRISE_ID,FAILURE_CD)
@@ -4198,10 +4198,10 @@
           "CREATE TABLE rm_lm_fetal_outcome (
               ENTERPRISE_ID numeric NOT NULL,
               FETAL_OUTCOME_ID numeric NOT NULL,
-              FETAL_OUTCOME varchar(35) NOT NULL,
+              FETAL_OUTCOME varchar(999) NOT NULL,
               DISPLAY numeric,
               PROTECTED numeric,
-              FETAL_OUTCOME_J varchar(35),
+              FETAL_OUTCOME_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,FETAL_OUTCOME_ID)
           )" }
@@ -4209,7 +4209,7 @@
     { "rm_lm_file_template_actions"
           "CREATE TABLE rm_lm_file_template_actions (
               ACTION_ID numeric NOT NULL,
-              ACTION varchar(250) NOT NULL,
+              ACTION varchar(999) NOT NULL,
               MODULE_TYPE numeric NOT NULL,
               ACTION_TYPE numeric NOT NULL,
               PRIMARY KEY (ACTION_ID)
@@ -4219,11 +4219,11 @@
           "CREATE TABLE rm_lm_formulation (
               ENTERPRISE_ID numeric NOT NULL,
               FORMULATION_ID numeric NOT NULL,
-              FORMULATION varchar(100) NOT NULL,
+              FORMULATION varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
-              FORMULATION_J varchar(100),
-              FORMULATION_SYMBOL_J varchar(5),
+              FORMULATION_J varchar(999),
+              FORMULATION_SYMBOL_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,FORMULATION_ID)
           )" }
@@ -4232,11 +4232,11 @@
           "CREATE TABLE rm_lm_gender (
               ENTERPRISE_ID numeric NOT NULL,
               GENDER_ID numeric NOT NULL,
-              GENDER varchar(10) NOT NULL,
+              GENDER varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
               E2B_CODE numeric,
-              GENDER_J varchar(10),
+              GENDER_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,GENDER_ID)
           )" }
@@ -4245,10 +4245,10 @@
           "CREATE TABLE rm_lm_hcp (
               ENTERPRISE_ID numeric NOT NULL,
               HCP_ID numeric NOT NULL,
-              HCP varchar(30) NOT NULL,
+              HCP varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
-              HCP_J varchar(30),
+              HCP_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,HCP_ID)
           )" }
@@ -4257,9 +4257,9 @@
           "CREATE TABLE rm_lm_holiday_calendar (
               ENTERPRISE_ID numeric NOT NULL,
               HOLIDAY_ID numeric NOT NULL,
-              HOLIDAY_NAME varchar(100),
+              HOLIDAY_NAME varchar(999),
               HOLIDAY_DATE timestamp,
-              DESCRIPTION varchar(200),
+              DESCRIPTION varchar(999),
               PROTECTED numeric(1),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,HOLIDAY_ID)
@@ -4279,10 +4279,10 @@
           "CREATE TABLE rm_lm_improper_use (
               ENTERPRISE_ID numeric NOT NULL,
               IMPROPER_USE_ID numeric NOT NULL,
-              IMPROPER_USE varchar(30) NOT NULL,
+              IMPROPER_USE varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
-              IMPROPER_USE_J varchar(30),
+              IMPROPER_USE_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,IMPROPER_USE_ID)
           )" }
@@ -4291,8 +4291,8 @@
           "CREATE TABLE rm_lm_ingredients (
               ENTERPRISE_ID numeric NOT NULL,
               INGREDIENT_ID numeric NOT NULL,
-              INGREDIENT varchar(120) NOT NULL,
-              INGREDIENT_J varchar(120),
+              INGREDIENT varchar(999) NOT NULL,
+              INGREDIENT_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,INGREDIENT_ID)
           )" }
@@ -4301,9 +4301,9 @@
           "CREATE TABLE rm_lm_institution (
               ENTERPRISE_ID numeric NOT NULL,
               INST_ID numeric NOT NULL,
-              INSTITUTION varchar(60),
-              INSTITUTION_ID varchar(15),
-              INSTITUTION_J varchar(60),
+              INSTITUTION varchar(999),
+              INSTITUTION_ID varchar(999),
+              INSTITUTION_J varchar(999),
               PROTECTED numeric(1),
               DISPLAY numeric(1),
               DELETED timestamp,
@@ -4314,9 +4314,9 @@
           "CREATE TABLE rm_lm_intermediary (
               ENTERPRISE_ID numeric NOT NULL,
               INTERMEDIARY_ID numeric NOT NULL,
-              INTERMEDIARY varchar(30) NOT NULL,
+              INTERMEDIARY varchar(999) NOT NULL,
               PROTECTED numeric,
-              INTERMEDIARY_J varchar(30),
+              INTERMEDIARY_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,INTERMEDIARY_ID)
           )" }
@@ -4326,10 +4326,10 @@
               ENTERPRISE_ID numeric NOT NULL,
               CENTER_ID numeric NOT NULL,
               SEQ_NUM numeric NOT NULL,
-              NAME varchar(140),
-              PHONE varchar(20),
-              FAX varchar(50),
-              NOTES varchar(100),
+              NAME varchar(999),
+              PHONE varchar(999),
+              FAX varchar(999),
+              NOTES varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,CENTER_ID,SEQ_NUM)
           )" }
@@ -4339,9 +4339,9 @@
               ENTERPRISE_ID numeric NOT NULL,
               JUSTIFICATION_ID numeric NOT NULL,
               FIELD_ID numeric NOT NULL,
-              JUSTIFICATION varchar(1000),
+              JUSTIFICATION varchar(999),
               PROTECTED numeric(1),
-              JUSTIFICATION_J varchar(1000),
+              JUSTIFICATION_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,JUSTIFICATION_ID,FIELD_ID)
           )" }
@@ -4350,10 +4350,10 @@
           "CREATE TABLE rm_lm_keywords (
               ENTERPRISE_ID numeric NOT NULL,
               KEYWORD_ID numeric NOT NULL,
-              KEYWORD varchar(40),
+              KEYWORD varchar(999),
               DISPLAY numeric(1),
               PROTECTED numeric(1),
-              KEYWORD_J varchar(40),
+              KEYWORD_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,KEYWORD_ID)
           )" }
@@ -4363,34 +4363,34 @@
               ENTERPRISE_ID numeric NOT NULL,
               DATASHEET_ID numeric NOT NULL,
               LABEL_TERM_ID numeric,
-              TERM_CODE varchar(40),
+              TERM_CODE varchar(999),
               CODE_DICT numeric,
               TERM_LEVEL numeric,
-              LABELED_TERM varchar(250),
+              LABELED_TERM varchar(999),
               DELETED timestamp,
               SEQ_NUM numeric NOT NULL,
               REVISION numeric,
               ADDED_DATE timestamp,
               CODE_STATUS numeric,
               CODE_STATUS_J numeric,
-              LABELED_TERM_J varchar(250),
-              TERM_LLT varchar(250),
-              TERM_HLT varchar(250),
-              TERM_HLGT varchar(250),
-              TERM_SOC varchar(250),
-              TERM_LLT_CODE varchar(50),
-              TERM_HLT_CODE varchar(50),
-              TERM_HLGT_CODE varchar(50),
-              TERM_SOC_CODE varchar(50),
-              TERM_AS_CODED varchar(250),
-              TERM_AS_REPTD varchar(250),
-              TERM_LLT_J varchar(250),
-              TERM_HLT_J varchar(250),
-              TERM_HLGT_J varchar(250),
-              TERM_SOC_J varchar(250),
-              TERM_LLT_CODE_J varchar(50),
-              TERM_AS_CODED_J varchar(250),
-              TERM_AS_REPTD_J varchar(250),
+              LABELED_TERM_J varchar(999),
+              TERM_LLT varchar(999),
+              TERM_HLT varchar(999),
+              TERM_HLGT varchar(999),
+              TERM_SOC varchar(999),
+              TERM_LLT_CODE varchar(999),
+              TERM_HLT_CODE varchar(999),
+              TERM_HLGT_CODE varchar(999),
+              TERM_SOC_CODE varchar(999),
+              TERM_AS_CODED varchar(999),
+              TERM_AS_REPTD varchar(999),
+              TERM_LLT_J varchar(999),
+              TERM_HLT_J varchar(999),
+              TERM_HLGT_J varchar(999),
+              TERM_SOC_J varchar(999),
+              TERM_LLT_CODE_J varchar(999),
+              TERM_AS_CODED_J varchar(999),
+              TERM_AS_REPTD_J varchar(999),
               SYN_CODE numeric,
               SYN_CODE_J numeric,
               NOTES varchar(999),
@@ -4403,10 +4403,10 @@
           "CREATE TABLE rm_lm_lab_assessment (
               ENTERPRISE_ID numeric NOT NULL,
               ASSESSMENT_ID numeric NOT NULL,
-              ASSESSMENT varchar(20) NOT NULL,
+              ASSESSMENT varchar(999) NOT NULL,
               DISPLAY numeric(1),
               PROTECTED numeric(1),
-              ASSESSMENT_J varchar(20),
+              ASSESSMENT_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,ASSESSMENT_ID)
           )" }
@@ -4415,7 +4415,7 @@
           "CREATE TABLE rm_lm_lab_test_group (
               ENTERPRISE_ID numeric NOT NULL,
               LAB_TEST_GROUP_ID numeric NOT NULL,
-              LAB_TEST_GROUP varchar(100),
+              LAB_TEST_GROUP varchar(999),
               DISPLAY numeric(1),
               PROTECTED numeric(1),
               DELETED timestamp,
@@ -4426,32 +4426,32 @@
           "CREATE TABLE rm_lm_lab_test_types (
               ENTERPRISE_ID numeric NOT NULL,
               LAB_TEST_ID numeric NOT NULL,
-              LAB_TEST varchar(250) NOT NULL,
-              NORM_LOW varchar(10),
-              NORM_HIGH varchar(10),
-              TEST_LLT varchar(250),
-              TEST_HLT varchar(250),
-              TEST_HLGT varchar(250),
-              TEST_SOC varchar(250),
-              TEST_LLT_CODE varchar(50),
-              TEST_PT_CODE varchar(50),
-              TEST_HLT_CODE varchar(50),
-              TEST_HLGT_CODE varchar(50),
-              TEST_SOC_CODE varchar(50),
+              LAB_TEST varchar(999) NOT NULL,
+              NORM_LOW varchar(999),
+              NORM_HIGH varchar(999),
+              TEST_LLT varchar(999),
+              TEST_HLT varchar(999),
+              TEST_HLGT varchar(999),
+              TEST_SOC varchar(999),
+              TEST_LLT_CODE varchar(999),
+              TEST_PT_CODE varchar(999),
+              TEST_HLT_CODE varchar(999),
+              TEST_HLGT_CODE varchar(999),
+              TEST_SOC_CODE varchar(999),
               DELETED timestamp,
               CODE_STATUS numeric,
               CODE_DICT numeric,
-              TEST_CODED varchar(250),
-              TEST_REPTD varchar(250),
+              TEST_CODED varchar(999),
+              TEST_REPTD varchar(999),
               CODE_STATUS_J numeric,
-              LAB_TEST_J varchar(250),
-              TEST_HLGT_J varchar(250),
-              TEST_HLT_J varchar(250),
-              TEST_LLT_CODE_J varchar(50),
-              TEST_LLT_J varchar(250),
-              TEST_SOC_J varchar(250),
-              TEST_REPTD_J varchar(250),
-              TEST_CODED_J varchar(250),
+              LAB_TEST_J varchar(999),
+              TEST_HLGT_J varchar(999),
+              TEST_HLT_J varchar(999),
+              TEST_LLT_CODE_J varchar(999),
+              TEST_LLT_J varchar(999),
+              TEST_SOC_J varchar(999),
+              TEST_REPTD_J varchar(999),
+              TEST_CODED_J varchar(999),
               SYN_CODE numeric,
               SYN_CODE_J numeric,
               PRIMARY KEY (ENTERPRISE_ID,LAB_TEST_ID)
@@ -4471,9 +4471,9 @@
           "CREATE TABLE rm_lm_languages (
               ENTERPRISE_ID numeric NOT NULL,
               LANGUAGE_ID numeric NOT NULL,
-              LANGUAGE varchar(40),
+              LANGUAGE varchar(999),
               ENABLED numeric,
-              LANGUAGE_J varchar(40),
+              LANGUAGE_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,LANGUAGE_ID)
           )" }
@@ -4493,35 +4493,35 @@
           "CREATE TABLE rm_lm_license (
               ENTERPRISE_ID numeric NOT NULL,
               LICENSE_ID numeric NOT NULL,
-              TRADE_NAME varchar(70),
+              TRADE_NAME varchar(999),
               MANUFACTURER_ID numeric,
               COUNTRY_ID numeric,
               LICENSE_TYPE_ID numeric,
-              LIC_NUMBER varchar(40),
+              LIC_NUMBER varchar(999),
               AWARD_DATE timestamp,
               WITHDRAW_DATE timestamp,
-              DRL_ID varchar(45),
+              DRL_ID varchar(999),
               BIOLOGIC numeric,
               REG_RPT_RULES_ID numeric,
               USE_AWARD_IBD_DATE numeric,
               ACTIVE_MOIETY numeric,
               DATASHEET_ID numeric,
               GROUP_ID numeric,
-              COMPANY_ITEM_NO varchar(40),
-              PRODUCT_INFO_LOCATION varchar(400),
+              COMPANY_ITEM_NO varchar(999),
+              PRODUCT_INFO_LOCATION varchar(999),
               DELETED timestamp,
               SINGLE_USE numeric,
               COMBINATION_PRODUCT numeric,
               OTC_PRODUCT numeric NOT NULL,
-              PMA varchar(20),
+              PMA varchar(999),
               NOMENCLATURE numeric(5),
               MEDICAL_DEVICE_INFO_ID numeric,
-              CTPR_GROUP_NAME varchar(50),
-              COMMENTS varchar(1000),
+              CTPR_GROUP_NAME varchar(999),
+              COMMENTS varchar(999),
               MHLW_RE_EXAMINATION_DATE timestamp,
-              CLINICAL_COMPOUND_NUMBER varchar(70),
-              TRADE_NAME_J varchar(70),
-              COMMENTS_J varchar(1000),
+              CLINICAL_COMPOUND_NUMBER varchar(999),
+              TRADE_NAME_J varchar(999),
+              COMMENTS_J varchar(999),
               EXCLUDE_RPT_CANDIDATE numeric(1),
               PMDA_CLASS_ID_1 numeric,
               PMDA_CLASS_ID_2 numeric,
@@ -4532,8 +4532,8 @@
     { "rm_lm_license_types"
           "CREATE TABLE rm_lm_license_types (
               LICENSE_TYPE_ID numeric NOT NULL,
-              LICENSE_TYPE varchar(30),
-              LICENSE_TYPE_J varchar(30),
+              LICENSE_TYPE varchar(999),
+              LICENSE_TYPE_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (LICENSE_TYPE_ID)
           )" }
@@ -4542,10 +4542,10 @@
           "CREATE TABLE rm_lm_lic_category (
               ENTERPRISE_ID numeric NOT NULL,
               CATEGORY_ID numeric NOT NULL,
-              CATEGORY_J varchar(200),
+              CATEGORY_J varchar(999),
               E2B_CODE numeric,
               DISPLAY numeric,
-              CATEGORY varchar(200),
+              CATEGORY varchar(999),
               PROTECTED numeric,
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,CATEGORY_ID)
@@ -4588,13 +4588,13 @@
           "CREATE TABLE rm_lm_listedness (
               ENTERPRISE_ID numeric NOT NULL,
               LISTEDNESS_ID numeric NOT NULL,
-              LISTEDNESS varchar(20),
+              LISTEDNESS varchar(999),
               PROTECTED numeric,
               DISPLAY numeric,
               DELETED timestamp,
-              LABELEDNESS varchar(20),
-              LABELEDNESS_J varchar(20),
-              LISTEDNESS_J varchar(20),
+              LABELEDNESS varchar(999),
+              LABELEDNESS_J varchar(999),
+              LISTEDNESS_J varchar(999),
               PRIMARY KEY (ENTERPRISE_ID,LISTEDNESS_ID)
           )" }

@@ -4602,8 +4602,8 @@
           "CREATE TABLE rm_lm_literature_type (
               ENTERPRISE_ID numeric NOT NULL,
               ID numeric NOT NULL,
-              TYPE varchar(40),
-              TYPE_J varchar(40),
+              TYPE varchar(999),
+              TYPE_J varchar(999),
               DISPLAY numeric(1),
               PROTECTED numeric(1),
               DELETED timestamp,
@@ -4614,15 +4614,15 @@
           "CREATE TABLE rm_lm_lit_citations (
               ENTERPRISE_ID numeric NOT NULL,
               LITERATURE_ID numeric NOT NULL,
-              JOURNAL varchar(80),
-              AUTHOR varchar(200),
-              TITLE varchar(250),
-              VOL varchar(15),
-              YEAR varchar(4),
-              PGS varchar(30),
-              AUTHOR_J varchar(200),
-              JOURNAL_J varchar(80),
-              TITLE_J varchar(250),
+              JOURNAL varchar(999),
+              AUTHOR varchar(999),
+              TITLE varchar(999),
+              VOL varchar(999),
+              YEAR varchar(999),
+              PGS varchar(999),
+              AUTHOR_J varchar(999),
+              JOURNAL_J varchar(999),
+              TITLE_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,LITERATURE_ID)
           )" }
@@ -4631,10 +4631,10 @@
           "CREATE TABLE rm_lm_location (
               ENTERPRISE_ID numeric NOT NULL,
               LOCATION_ID numeric NOT NULL,
-              LOCATION_DESC varchar(20) NOT NULL,
+              LOCATION_DESC varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
-              LOCATION_DESC_J varchar(20),
+              LOCATION_DESC_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,LOCATION_ID)
           )" }
@@ -4643,11 +4643,11 @@
           "CREATE TABLE rm_lm_malfunction_type (
               ENTERPRISE_ID numeric NOT NULL,
               MALFUNCTION_TYPE_ID numeric NOT NULL,
-              MALFUNCTION_TYPE varchar(100) NOT NULL,
+              MALFUNCTION_TYPE varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
               ENABLE_DATE numeric,
-              MALFUNCTION_TYPE_J varchar(100),
+              MALFUNCTION_TYPE_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,MALFUNCTION_TYPE_ID)
           )" }
@@ -4656,23 +4656,23 @@
           "CREATE TABLE rm_lm_manufacturer (
               ENTERPRISE_ID numeric NOT NULL,
               MANUFACTURER_ID numeric NOT NULL,
-              MANU_NAME varchar(40) NOT NULL,
-              ADDRESS varchar(120),
-              CITY varchar(30),
-              STATE varchar(10),
-              POSTAL_CODE varchar(10),
-              COUNTRY varchar(50),
-              CONTACT varchar(40),
-              PHONE varchar(20),
-              REG_NO varchar(10),
-              DELETED timestamp,
-              FAX varchar(50),
+              MANU_NAME varchar(999) NOT NULL,
+              ADDRESS varchar(999),
+              CITY varchar(999),
+              STATE varchar(999),
+              POSTAL_CODE varchar(999),
+              COUNTRY varchar(999),
+              CONTACT varchar(999),
+              PHONE varchar(999),
+              REG_NO varchar(999),
+              DELETED timestamp,
+              FAX varchar(999),
               COUNTRY_ID numeric,
-              ADDRESS_J varchar(120),
-              CITY_J varchar(30),
-              CONTACT_J varchar(40),
-              MANU_NAME_J varchar(40),
-              STATE_J varchar(10),
+              ADDRESS_J varchar(999),
+              CITY_J varchar(999),
+              CONTACT_J varchar(999),
+              MANU_NAME_J varchar(999),
+              STATE_J varchar(999),
               PRIMARY KEY (ENTERPRISE_ID,MANUFACTURER_ID)
           )" }

@@ -4680,7 +4680,7 @@
           "CREATE TABLE rm_lm_medical_device_info (
               ENTERPRISE_ID numeric NOT NULL,
               MEDICAL_DEVICE_INFO_ID numeric NOT NULL,
-              MEDICAL_DEVICE_INFO varchar(200),
+              MEDICAL_DEVICE_INFO varchar(999),
               PROTECTED numeric(1) NOT NULL,
               DISPLAY numeric(1) NOT NULL,
               DELETED timestamp,
@@ -4692,10 +4692,10 @@
               ENTERPRISE_ID numeric NOT NULL,
               MED_STATUS_ID numeric NOT NULL,
               SEQ_NUM numeric,
-              LABEL varchar(40) NOT NULL,
+              LABEL varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
-              LABEL_J varchar(40),
+              LABEL_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,MED_STATUS_ID)
           )" }
@@ -4704,12 +4704,12 @@
           "CREATE TABLE rm_lm_mfr_eval_reason (
               ENTERPRISE_ID numeric NOT NULL,
               MFR_EVAL_ID numeric NOT NULL,
-              MFR_EVAL_REASON varchar(100),
+              MFR_EVAL_REASON varchar(999),
               DISPLAY numeric,
               PROTECTED numeric,
               DELETED timestamp,
               MFR_EVAL_CODE numeric NOT NULL,
-              MFR_EVAL_REASON_J varchar(100),
+              MFR_EVAL_REASON_J varchar(999),
               PRIMARY KEY (ENTERPRISE_ID,MFR_EVAL_ID)
           )" }

@@ -4717,9 +4717,9 @@
           "CREATE TABLE rm_lm_occupations (
               ENTERPRISE_ID numeric NOT NULL,
               OCCUPATION_ID numeric NOT NULL,
-              OCCUPATION varchar(40) NOT NULL,
+              OCCUPATION varchar(999) NOT NULL,
               ICH numeric,
-              OCCUPATION_J varchar(40),
+              OCCUPATION_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,OCCUPATION_ID)
           )" }
@@ -4728,10 +4728,10 @@
           "CREATE TABLE rm_lm_pack_units (
               ENTERPRISE_ID numeric NOT NULL,
               ID numeric NOT NULL,
-              DESCRIPTION varchar(20) NOT NULL,
+              DESCRIPTION varchar(999) NOT NULL,
               DISPLAY numeric(4),
               PROTECTED numeric(4),
-              DESCRIPTION_J varchar(20),
+              DESCRIPTION_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,ID)
           )" }
@@ -4753,8 +4753,8 @@
               ENTERPRISE_ID numeric NOT NULL,
               CLASSIFICATION_ID numeric NOT NULL,
               CLASSIFICATION_TYPE numeric,
-              CLASSIFICATION varchar(50),
-              CLASSIFICATION_J varchar(50),
+              CLASSIFICATION varchar(999),
+              CLASSIFICATION_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,CLASSIFICATION_ID)
           )" }
@@ -4763,55 +4763,55 @@
           "CREATE TABLE rm_lm_product (
               ENTERPRISE_ID numeric NOT NULL,
               PRODUCT_ID numeric NOT NULL,
-              PROD_NAME varchar(70),
+              PROD_NAME varchar(999),
               FAMILY_ID numeric,
               FORMULATION_ID numeric,
               MANUFACTURER_ID numeric,
-              CONCENTRATION varchar(10),
+              CONCENTRATION varchar(999),
               CONC_UNIT_ID numeric,
-              INDICATION_ID varchar(50),
+              INDICATION_ID varchar(999),
               CODE_DICT numeric,
-              INDICATION_TEXT varchar(250),
+              INDICATION_TEXT varchar(999),
               INTL_BIRTH_DATE timestamp,
-              MODEL_NO varchar(20),
-              DRL_ID varchar(45),
-              DRUG_CODE varchar(20),
+              MODEL_NO varchar(999),
+              DRL_ID varchar(999),
+              DRUG_CODE varchar(999),
               DELETED timestamp,
               PROD_GENERIC_NAME varchar(999),
               PROD_GENERIC_NAME_J varchar(999),
-              IND_LLT_CODE varchar(50),
-              IND_LLT varchar(250),
-              IND_HLT_CODE varchar(50),
-              IND_HLT varchar(250),
-              IND_HLGT_CODE varchar(50),
-              IND_HLGT varchar(250),
-              IND_SOC_CODE varchar(50),
-              IND_SOC varchar(250),
+              IND_LLT_CODE varchar(999),
+              IND_LLT varchar(999),
+              IND_HLT_CODE varchar(999),
+              IND_HLT varchar(999),
+              IND_HLGT_CODE varchar(999),
+              IND_HLGT varchar(999),
+              IND_SOC_CODE varchar(999),
+              IND_SOC varchar(999),
               IND_SYN_CODE numeric,
               IND_CODE_STATUS numeric,
-              MEDICINAL_PROD_ID varchar(10),
-              PROD_NAME_ABBRV varchar(5),
-              DEVICE_CODE varchar(50),
-              PSUR_GROUP_NAME varchar(50),
-              COMMENTS varchar(1000),
-              IND_CODED varchar(250),
-              IND_REPTD varchar(250),
-              DRL_ID_J varchar(45),
-              DRUG_CODE_J varchar(20),
+              MEDICINAL_PROD_ID varchar(999),
+              PROD_NAME_ABBRV varchar(999),
+              DEVICE_CODE varchar(999),
+              PSUR_GROUP_NAME varchar(999),
+              COMMENTS varchar(999),
+              IND_CODED varchar(999),
+              IND_REPTD varchar(999),
+              DRL_ID_J varchar(999),
+              DRUG_CODE_J varchar(999),
               DRUG_CODE_TYPE_J numeric,
-              INDICATION_TEXT_J varchar(250),
+              INDICATION_TEXT_J varchar(999),
               IND_CODE_STATUS_J numeric,
-              IND_HLGT_J varchar(250),
-              IND_HLT_J varchar(250),
-              IND_LLT_CODE_J varchar(50),
-              IND_LLT_J varchar(250),
-              IND_SOC_J varchar(250),
-              PROD_NAME_J varchar(70),
+              IND_HLGT_J varchar(999),
+              IND_HLT_J varchar(999),
+              IND_LLT_CODE_J varchar(999),
+              IND_LLT_J varchar(999),
+              IND_SOC_J varchar(999),
+              PROD_NAME_J varchar(999),
               IND_SYN_CODE_J numeric,
-              IND_CODED_J varchar(250),
-              IND_REPTD_J varchar(250),
+              IND_CODED_J varchar(999),
+              IND_REPTD_J varchar(999),
               DEV_INTL_BIRTH_DATE timestamp,
-              COMMENTS_J varchar(1000),
+              COMMENTS_J varchar(999),
               PRIMARY KEY (ENTERPRISE_ID,PRODUCT_ID)
           )" }

@@ -4821,7 +4821,7 @@
               PRODUCT_ID numeric NOT NULL,
               INGREDIENT_ID numeric NOT NULL,
               SEQ_NUM numeric NOT NULL,
-              CONCENTRATION varchar(10),
+              CONCENTRATION varchar(999),
               CONC_UNIT_ID numeric,
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,PRODUCT_ID,INGREDIENT_ID,SEQ_NUM)
@@ -4831,14 +4831,14 @@
           "CREATE TABLE rm_lm_product_family (
               ENTERPRISE_ID numeric NOT NULL,
               FAMILY_ID numeric NOT NULL,
-              NAME varchar(40),
+              NAME varchar(999),
               PRIMARY_VIEW numeric,
               DELETED timestamp,
               PRODUCT_GROUP_ID numeric,
-              COMMENTS varchar(1000),
-              SEARCH_EQUATION_NUMBER varchar(10),
-              NAME_J varchar(40),
-              COMMENTS_J varchar(1000),
+              COMMENTS varchar(999),
+              SEARCH_EQUATION_NUMBER varchar(999),
+              NAME_J varchar(999),
+              COMMENTS_J varchar(999),
               PRIMARY KEY (ENTERPRISE_ID,FAMILY_ID)
           )" }

@@ -4846,9 +4846,9 @@
           "CREATE TABLE rm_lm_product_group (
               ENTERPRISE_ID numeric NOT NULL,
               PRODUCT_GROUP_ID numeric NOT NULL,
-              NAME varchar(70),
+              NAME varchar(999),
               DISPLAY numeric,
-              NAME_J varchar(70),
+              NAME_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,PRODUCT_GROUP_ID)
           )" }
@@ -4858,11 +4858,11 @@
               ENTERPRISE_ID numeric NOT NULL,
               LOT_ID numeric NOT NULL,
               PRODUCT_ID numeric NOT NULL,
-              LOT_NO varchar(35),
-              EXT_LOT_ID varchar(50),
+              LOT_NO varchar(999),
+              EXT_LOT_ID varchar(999),
               EXPIRATION_DATE timestamp,
               EXPIRATION_DATE_RES numeric,
-              EXPIRATION_DATE_PARTIAL varchar(20),
+              EXPIRATION_DATE_PARTIAL varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,LOT_ID)
           )" }
@@ -4871,10 +4871,10 @@
           "CREATE TABLE rm_lm_protocols (
               ENTERPRISE_ID numeric NOT NULL,
               PROTOCOL_ID numeric NOT NULL,
-              PROTOCOL_DESC varchar(40),
+              PROTOCOL_DESC varchar(999),
               DELETED timestamp,
               DISPLAY numeric,
-              PROTOCOL_DESC_J varchar(40),
+              PROTOCOL_DESC_J varchar(999),
               PRIMARY KEY (ENTERPRISE_ID,PROTOCOL_ID)
           )" }

@@ -4882,8 +4882,8 @@
           "CREATE TABLE rm_lm_purchased_with (
               ENTERPRISE_ID numeric NOT NULL,
               PURCHASE_ID numeric NOT NULL,
-              PURCHASE varchar(40),
-              PURCHASE_J varchar(40),
+              PURCHASE varchar(999),
+              PURCHASE_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,PURCHASE_ID)
           )" }
@@ -4892,17 +4892,17 @@
           "CREATE TABLE rm_lm_recipient (
               ENTERPRISE_ID numeric NOT NULL,
               RECIPIENT_ID numeric NOT NULL,
-              NAME varchar(30),
-              TITLE varchar(50),
-              ADDRESS varchar(50),
-              CITY varchar(30),
-              PHONE varchar(15),
-              EMAIL varchar(100),
-              STATE varchar(10),
-              POSTAL_CODE varchar(10),
-              FAX varchar(50),
+              NAME varchar(999),
+              TITLE varchar(999),
+              ADDRESS varchar(999),
+              CITY varchar(999),
+              PHONE varchar(999),
+              EMAIL varchar(999),
+              STATE varchar(999),
+              POSTAL_CODE varchar(999),
+              FAX varchar(999),
               PREFERRED numeric(1),
-              COUNTRY varchar(50),
+              COUNTRY varchar(999),
               COUNTRY_ID numeric,
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,RECIPIENT_ID)
@@ -4912,10 +4912,10 @@
           "CREATE TABLE rm_lm_ref_types (
               ENTERPRISE_ID numeric NOT NULL,
               REF_TYPE_ID numeric NOT NULL,
-              TYPE_DESC varchar(25) NOT NULL,
+              TYPE_DESC varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
-              TYPE_DESC_J varchar(25),
+              TYPE_DESC_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,REF_TYPE_ID)
           )" }
@@ -4924,65 +4924,65 @@
           "CREATE TABLE rm_lm_regulatory_contact (
               ENTERPRISE_ID numeric NOT NULL,
               AGENCY_ID numeric NOT NULL,
-              AGENCY_NAME varchar(40),
-              REG_NUM varchar(10),
-              CONTACT_NAME varchar(40),
-              TITLE varchar(40),
-              ADDRESS varchar(120),
-              CITY varchar(35),
-              STATE varchar(40),
-              POST_CODE varchar(15),
+              AGENCY_NAME varchar(999),
+              REG_NUM varchar(999),
+              CONTACT_NAME varchar(999),
+              TITLE varchar(999),
+              ADDRESS varchar(999),
+              CITY varchar(999),
+              STATE varchar(999),
+              POST_CODE varchar(999),
               COUNTRY numeric,
-              PHONE varchar(20),
-              FAX varchar(50),
-              EMAIL varchar(100),
+              PHONE varchar(999),
+              FAX varchar(999),
+              EMAIL varchar(999),
               OFF_LINE numeric,
               PREF_METHOD numeric,
-              DEPARTMENT varchar(60),
-              FIRST_NAME varchar(35),
-              MIDDLE_NAME varchar(15),
-              TEL_EXT varchar(10),
-              TEL_CONT_CODE varchar(3),
-              FAX_EXT varchar(10),
-              FAX_CONT_CODE varchar(3),
+              DEPARTMENT varchar(999),
+              FIRST_NAME varchar(999),
+              MIDDLE_NAME varchar(999),
+              TEL_EXT varchar(999),
+              TEL_CONT_CODE varchar(999),
+              FAX_EXT varchar(999),
+              FAX_CONT_CODE varchar(999),
               MAX_E2B_RPT numeric,
               VIEW_PRINT_METHOD numeric,
               RECEIVER_TYPE numeric,
               SENDER_TYPE numeric,
               CONT_COUNTRY_ID numeric,
-              CONT_COMPANY_NAME varchar(40),
-              CONT_NAME varchar(40),
-              CONT_TITLE varchar(40),
-              CONT_ADDRESS varchar(120),
-              CONT_CITY varchar(35),
-              CONT_STATE varchar(40),
-              CONT_POSTCODE varchar(15),
-              CONT_PHONE varchar(20),
-              CONT_FAX varchar(50),
-              CONT_DEPARTMENT varchar(60),
-              CONT_FIRST_NAME varchar(35),
-              CONT_MIDDLE_NAME varchar(15),
-              CONT_TEL_EXT varchar(10),
-              CONT_TEL_CONT_CODE varchar(3),
-              CONT_FAX_EXT varchar(10),
-              CONT_FAX_CONT_CODE varchar(3),
-              SENDER_EMAIL varchar(100),
-              FAX_MAIN varchar(50),
+              CONT_COMPANY_NAME varchar(999),
+              CONT_NAME varchar(999),
+              CONT_TITLE varchar(999),
+              CONT_ADDRESS varchar(999),
+              CONT_CITY varchar(999),
+              CONT_STATE varchar(999),
+              CONT_POSTCODE varchar(999),
+              CONT_PHONE varchar(999),
+              CONT_FAX varchar(999),
+              CONT_DEPARTMENT varchar(999),
+              CONT_FIRST_NAME varchar(999),
+              CONT_MIDDLE_NAME varchar(999),
+              CONT_TEL_EXT varchar(999),
+              CONT_TEL_CONT_CODE varchar(999),
+              CONT_FAX_EXT varchar(999),
+              CONT_FAX_CONT_CODE varchar(999),
+              SENDER_EMAIL varchar(999),
+              FAX_MAIN varchar(999),
               TERM_SELECTION numeric,
-              FAX_COVER varchar(255),
+              FAX_COVER varchar(999),
               RULE_MARKETED numeric(2) NOT NULL,
               RULE_INVESTIGATIONAL numeric(2) NOT NULL,
               REPORTS_PER_EMAIL numeric(10),
               SINGLE_ATTACHMENT numeric(1),
               EMAIL_BODY_TYPE numeric(1),
               DELETED timestamp,
-              CONT_LAB_CODE varchar(30),
+              CONT_LAB_CODE varchar(999),
               CONTACT_TYPE numeric(1),
               AWARE_SELECTION_ID numeric(1),
               SUSAR_REPORTING numeric,
-              SMTP_FROM_EMAIL varchar(100),
-              SMTP_CC_EMAIL varchar(1000),
-              SMTP_BCC_EMAIL varchar(1000),
+              SMTP_FROM_EMAIL varchar(999),
+              SMTP_CC_EMAIL varchar(999),
+              SMTP_BCC_EMAIL varchar(999),
               SMTP_READ_RECEIPT_FLAG numeric,
               SMTP_DELIVERY_RECEIPT_FLAG numeric,
               AUTO_ACCEPT_ICSR numeric NOT NULL,
@@ -4990,12 +4990,12 @@
               SUPPRESS_DUPLICATE_REPORTS numeric,
               SUPPRESS_LICENSE_TYPE numeric,
               AUTO_ACCEPT_ICSR_TYPE numeric(1),
-              USE_JPN_AWARE_DATE varchar(1),
-              MULT_RPT_MKT_DRUGS varchar(1),
-              MULT_RPT_INVEST_DRUGS varchar(1),
+              USE_JPN_AWARE_DATE varchar(999),
+              MULT_RPT_MKT_DRUGS varchar(999),
+              MULT_RPT_INVEST_DRUGS varchar(999),
               ADJUST_DUE_DT_FOR_HOLIDAYS numeric(1),
-              AGENCY_NAME_J varchar(40),
-              CONT_COMPANY_NAME_J varchar(40),
+              AGENCY_NAME_J varchar(999),
+              CONT_COMPANY_NAME_J varchar(999),
               EMAIL_BODY varchar(999),
               FAX_HEADER_J numeric,
               PRIMARY KEY (ENTERPRISE_ID,AGENCY_ID)
@@ -5005,8 +5005,8 @@
           "CREATE TABLE rm_lm_relation (
               ENTERPRISE_ID numeric NOT NULL,
               ID numeric NOT NULL,
-              DESCRIPTION varchar(50),
-              DESCRIPTION_J varchar(50),
+              DESCRIPTION varchar(999),
+              DESCRIPTION_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,ID)
           )" }
@@ -5015,7 +5015,7 @@
           "CREATE TABLE rm_lm_reportable_prod_keyword (
               ENTERPRISE_ID numeric NOT NULL,
               KEYWORD_ID numeric NOT NULL,
-              KEYWORD varchar(100),
+              KEYWORD varchar(999),
               FAMILY_ID numeric,
               ACTIVATE numeric(1),
               PROTECTED numeric(1),
@@ -5027,8 +5027,8 @@
           "CREATE TABLE rm_lm_reported (
               ENTERPRISE_ID numeric NOT NULL,
               ID numeric NOT NULL,
-              DESCRIPTION varchar(50),
-              DESCRIPTION_J varchar(50),
+              DESCRIPTION varchar(999),
+              DESCRIPTION_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,ID)
           )" }
@@ -5038,36 +5038,36 @@
               ENTERPRISE_ID numeric NOT NULL,
               REPORTER_ID numeric NOT NULL,
               CENTER_ID numeric,
-              PREFIX varchar(50),
-              FIRST_NAME varchar(35),
-              LAST_NAME varchar(50),
+              PREFIX varchar(999),
+              FIRST_NAME varchar(999),
+              LAST_NAME varchar(999),
               OCCUPATION_ID numeric,
-              CUST_RPT_ID varchar(20),
-              ADDRESS varchar(120),
-              CITY varchar(35),
-              STATE varchar(40),
-              ZIP varchar(15),
-              COUNTRY varchar(50),
-              PHONE varchar(20),
-              ALT_PHONE varchar(20),
-              FAX varchar(50),
-              EMAIL varchar(100),
+              CUST_RPT_ID varchar(999),
+              ADDRESS varchar(999),
+              CITY varchar(999),
+              STATE varchar(999),
+              ZIP varchar(999),
+              COUNTRY varchar(999),
+              PHONE varchar(999),
+              ALT_PHONE varchar(999),
+              FAX varchar(999),
+              EMAIL varchar(999),
               HEALTHCARE_PROF numeric,
               RPTR_TYPE_ID numeric,
-              SUFFIX varchar(15),
+              SUFFIX varchar(999),
               RECIPIENT numeric(1),
               PREFERRED numeric(1),
-              ADDRESS_J varchar(120),
-              SUFFIX_J varchar(15),
-              DELETED timestamp,
-              DEPARTMENT varchar(60),
-              DEPARTMENT_J varchar(60),
+              ADDRESS_J varchar(999),
+              SUFFIX_J varchar(999),
+              DELETED timestamp,
+              DEPARTMENT varchar(999),
+              DEPARTMENT_J varchar(999),
               COUNTRY_ID numeric,
-              CITY_J varchar(35),
-              FIRST_NAME_J varchar(35),
-              LAST_NAME_J varchar(50),
-              PREFIX_J varchar(50),
-              STATE_J varchar(40),
+              CITY_J varchar(999),
+              FIRST_NAME_J varchar(999),
+              LAST_NAME_J varchar(999),
+              PREFIX_J varchar(999),
+              STATE_J varchar(999),
               PRIMARY KEY (ENTERPRISE_ID,REPORTER_ID)
           )" }

@@ -5086,11 +5086,11 @@
           "CREATE TABLE rm_lm_reporter_type (
               ENTERPRISE_ID numeric NOT NULL,
               RPTR_TYPE_ID numeric NOT NULL,
-              REPORTER_TYPE varchar(30) NOT NULL,
+              REPORTER_TYPE varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
               E2B_CODE numeric,
-              REPORTER_TYPE_J varchar(30),
+              REPORTER_TYPE_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,RPTR_TYPE_ID)
           )" }
@@ -5098,9 +5098,9 @@
     { "rm_lm_report_build_status"
           "CREATE TABLE rm_lm_report_build_status (
               STATUS_ID numeric NOT NULL,
-              STATUS_NAME varchar(100) NOT NULL,
+              STATUS_NAME varchar(999) NOT NULL,
               REPORT_TYPE numeric NOT NULL,
-              STATUS_NAME_J varchar(100),
+              STATUS_NAME_J varchar(999),
               PRIMARY KEY (STATUS_ID,REPORT_TYPE)
           )" }

@@ -5108,7 +5108,7 @@
           "CREATE TABLE rm_lm_report_forms (
               ENTERPRISE_ID numeric NOT NULL,
               REPORT_FORM_ID numeric NOT NULL,
-              FORM_DESC varchar(200) NOT NULL,
+              FORM_DESC varchar(999) NOT NULL,
               AGENCY_ID numeric,
               RPT_TYPE numeric,
               HIDDEN numeric,
@@ -5121,10 +5121,10 @@
           "CREATE TABLE rm_lm_report_media (
               ENTERPRISE_ID numeric NOT NULL,
               MEDIA_ID numeric NOT NULL,
-              MEDIA varchar(30) NOT NULL,
+              MEDIA varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
-              MEDIA_J varchar(30),
+              MEDIA_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,MEDIA_ID)
           )" }
@@ -5133,15 +5133,15 @@
           "CREATE TABLE rm_lm_report_type (
               ENTERPRISE_ID numeric NOT NULL,
               RPT_TYPE_ID numeric NOT NULL,
-              REPORT_TYPE varchar(30) NOT NULL,
+              REPORT_TYPE varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
               INCL_LIT numeric,
               INCL_TRIAL numeric,
               E2B_CODE numeric,
-              ABRV varchar(3),
+              ABRV varchar(999),
               INVESTIGATIONAL numeric,
-              REPORT_TYPE_J varchar(30),
+              REPORT_TYPE_J varchar(999),
               DELETED timestamp,
               INCL_RESEARCH numeric NOT NULL,
               PRIMARY KEY (ENTERPRISE_ID,RPT_TYPE_ID)
@@ -5151,12 +5151,12 @@
           "CREATE TABLE rm_lm_rpt_category (
               ENTERPRISE_ID numeric NOT NULL,
               RPT_CATEGORY_ID numeric NOT NULL,
-              RPT_CATEGORY varchar(3),
+              RPT_CATEGORY varchar(999),
               REPORT_FORM_ID numeric,
-              DESCRIPTION_J varchar(200),
+              DESCRIPTION_J varchar(999),
               E2B_CODE numeric,
               DISPLAY numeric,
-              DESCRIPTION varchar(200),
+              DESCRIPTION varchar(999),
               PROTECTED numeric,
               CATEGORY_FILTER numeric,
               DELETED timestamp,
@@ -5166,7 +5166,7 @@
     { "rm_lm_severity"
           "CREATE TABLE rm_lm_severity (
               SEVERITY_ID numeric NOT NULL,
-              SEVERITY varchar(30) NOT NULL,
+              SEVERITY varchar(999) NOT NULL,
               PROTECTED numeric,
               DISPLAY numeric,
               DELETED timestamp,
@@ -5177,8 +5177,8 @@
           "CREATE TABLE rm_lm_sites (
               ENTERPRISE_ID numeric NOT NULL,
               SITE_ID numeric NOT NULL,
-              SITE_DESC varchar(40),
-              SITE_ABRV varchar(4),
+              SITE_DESC varchar(999),
+              SITE_ABRV varchar(999),
               DELETED timestamp,
               LAM_SITE numeric,
               PROTECT_PATIENT numeric,
@@ -5194,34 +5194,34 @@
               ENTERPRISE_ID numeric NOT NULL,
               STUDY_KEY numeric NOT NULL,
               ALERT_AC_ID numeric,
-              STUDY_NUM varchar(35),
-              PROTOCOL_NUM varchar(40),
-              OTHER_NUM varchar(20),
+              STUDY_NUM varchar(999),
+              PROTOCOL_NUM varchar(999),
+              OTHER_NUM varchar(999),
               STUDY_TYPE numeric,
               UNBLIND_OK numeric(1),
               ENCODING numeric(4),
               DRUG_AUTO numeric(4),
-              DRUG_DICT varchar(20),
+              DRUG_DICT varchar(999),
               EVENT_AUTO numeric(4),
-              EVENT_DICT varchar(20),
+              EVENT_DICT varchar(999),
               EVENT_NO_MANUAL numeric(4),
               EVENT_CLOSURE numeric(4),
               CLASSIFICATION_ID numeric,
               TEMPLATE numeric(1),
               RULES_TEMPLATE_ID numeric,
               ID_PROTOCOL numeric,
-              STUDY_ABBREV varchar(5),
-              DELETED timestamp,
-              COMMENTS varchar(1000),
+              STUDY_ABBREV varchar(999),
+              DELETED timestamp,
+              COMMENTS varchar(999),
               DEV_PHASE_ID numeric,
               CASE_UNDER_ADMIN_J numeric,
-              STUDY_NUM_J varchar(35),
-              TARGET_DISEASE_J varchar(500),
-              CLIN_COMP_NUM_J varchar(70),
+              STUDY_NUM_J varchar(999),
+              TARGET_DISEASE_J varchar(999),
+              CLIN_COMP_NUM_J varchar(999),
               STUDY_DESC varchar(999),
               STUDY_DESC_J varchar(999),
               CENTRAL_EVENT numeric,
-              COMMENTS_J varchar(1000),
+              COMMENTS_J varchar(999),
               PRIMARY KEY (ENTERPRISE_ID,STUDY_KEY)
           )" }

@@ -5252,7 +5252,7 @@
               PRODUCT_ID numeric NOT NULL,
               SEQ_NUM numeric NOT NULL,
               LICENSE_ID numeric,
-              MEDICINAL_PROD_ID varchar(10),
+              MEDICINAL_PROD_ID varchar(999),
               DELETED timestamp,
               BLINDED numeric NOT NULL,
               COHORT_ID numeric NOT NULL,
@@ -5267,7 +5267,7 @@
               SEQ_NUM numeric NOT NULL,
               SORT_ID numeric,
               REF_TYPE_ID numeric,
-              REFERENCE varchar(40),
+              REFERENCE varchar(999),
               COUNTRY_ID numeric,
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,STUDY_KEY,SEQ_NUM)
@@ -5289,10 +5289,10 @@
     { "rm_lm_study_types"
           "CREATE TABLE rm_lm_study_types (
               STUDY_TYPE_ID numeric NOT NULL,
-              STUDY_TYPE varchar(15),
+              STUDY_TYPE varchar(999),
               PROTECTED numeric,
               DISPLAY numeric,
-              STUDY_TYPE_J varchar(15),
+              STUDY_TYPE_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (STUDY_TYPE_ID)
           )" }
@@ -5302,8 +5302,8 @@
               ENTERPRISE_ID numeric NOT NULL,
               ID numeric NOT NULL,
               FIELD_ID numeric NOT NULL,
-              DESCRIPTION varchar(100),
-              DESCRIPTION_J varchar(100),
+              DESCRIPTION varchar(999),
+              DESCRIPTION_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,ID)
           )" }
@@ -5312,10 +5312,10 @@
           "CREATE TABLE rm_lm_unblinding_status (
               ENTERPRISE_ID numeric NOT NULL,
               STATUS_ID numeric NOT NULL,
-              UNBLINDING_STATUS varchar(30),
+              UNBLINDING_STATUS varchar(999),
               DISPLAY numeric(1),
               PROTECTED numeric(1),
-              UNBLINDING_STATUS_J varchar(30),
+              UNBLINDING_STATUS_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,STATUS_ID)
           )" }
@@ -5324,8 +5324,8 @@
           "CREATE TABLE rm_lm_vaccinated_at (
               ENTERPRISE_ID numeric NOT NULL,
               VACC_AT_ID numeric NOT NULL,
-              LOCATION varchar(40),
-              LOCATION_J varchar(40),
+              LOCATION varchar(999),
+              LOCATION_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,VACC_AT_ID)
           )" }
@@ -5333,8 +5333,8 @@
     { "rm_lm_vaccines"
           "CREATE TABLE rm_lm_vaccines (
               VACC_ID numeric NOT NULL,
-              VACCINE_CODE varchar(6),
-              VACCINE_DESC varchar(100),
+              VACCINE_CODE varchar(999),
+              VACCINE_DESC varchar(999),
               DELETED timestamp,
               PRIMARY KEY (VACC_ID)
           )" }
@@ -5343,8 +5343,8 @@
           "CREATE TABLE rm_lm_vaers_rpt_block (
               ENTERPRISE_ID numeric NOT NULL,
               BLOCK_ID numeric NOT NULL,
-              BLOCK_NAME varchar(20),
-              BLOCK_NAME_J varchar(20),
+              BLOCK_NAME varchar(999),
+              BLOCK_NAME_J varchar(999),
               DELETED timestamp,
               PRIMARY KEY (ENTERPRISE_ID,BLOCK_ID)
           )" }
@@ -5362,14 +5362,14 @@
           "CREATE TABLE rm_meddra_hlg_pref_term (
               GLOBAL_DICT_ID numeric NOT NULL,
               HLGT_CODE numeric NOT NULL,
-              HLGT_NAME varchar(120),
-              HLGT_WHO_ART_CODE varchar(7),
+              HLGT_NAME varchar(999),
+              HLGT_WHO_ART_CODE varchar(999),
               HLGT_HARTS_CODE numeric,
-              HLGT_COSTART_FG varchar(21),
-              HLGT_ICD9_CODE varchar(8),
-              HLGT_ICD9CM_CODE varchar(8),
-              HLGT_ICD10_CODE varchar(8),
-              HLGT_J_ART_CODE varchar(6),
+              HLGT_COSTART_FG varchar(999),
+              HLGT_ICD9_CODE varchar(999),
+              HLGT_ICD9CM_CODE varchar(999),
+              HLGT_ICD10_CODE varchar(999),
+              HLGT_J_ART_CODE varchar(999),
               DELETED timestamp,
               PRIMARY KEY (GLOBAL_DICT_ID,HLGT_CODE)
           )" }
@@ -5378,10 +5378,10 @@
           "CREATE TABLE rm_meddra_hlg_pref_term_j (
               GLOBAL_DICT_ID numeric NOT NULL,
               HLGT_CODE numeric NOT NULL,
-              HLGT_KANJI varchar(400),
-              HLGT_KANA varchar(400),
-              HLGT_KANA1 varchar(400),
-              HLGT_KANA2 varchar(400),
+              HLGT_KANJI varchar(999),
+              HLGT_KANA varchar(999),
+              HLGT_KANA1 varchar(999),
+              HLGT_KANA2 varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,HLGT_CODE)
           )" }

@@ -5398,14 +5398,14 @@
           "CREATE TABLE rm_meddra_hl_pref_term (
               GLOBAL_DICT_ID numeric NOT NULL,
               HLT_CODE numeric NOT NULL,
-              HLT_NAME varchar(120),
-              HLT_WHO_ART_CODE varchar(7),
+              HLT_NAME varchar(999),
+              HLT_WHO_ART_CODE varchar(999),
               HLT_HARTS_CODE numeric,
-              HLT_COSTART_FG varchar(21),
-              HLT_ICD9_CODE varchar(8),
-              HLT_ICD9CM_CODE varchar(8),
-              HLT_ICD10_CODE varchar(8),
-              HLT_J_ART_CODE varchar(6),
+              HLT_COSTART_FG varchar(999),
+              HLT_ICD9_CODE varchar(999),
+              HLT_ICD9CM_CODE varchar(999),
+              HLT_ICD10_CODE varchar(999),
+              HLT_J_ART_CODE varchar(999),
               DELETED timestamp,
               PRIMARY KEY (GLOBAL_DICT_ID,HLT_CODE)
           )" }
@@ -5414,10 +5414,10 @@
           "CREATE TABLE rm_meddra_hl_pref_term_j (
               GLOBAL_DICT_ID numeric NOT NULL,
               HLT_CODE numeric NOT NULL,
-              HLT_KANJI varchar(400),
-              HLT_KANA varchar(400),
-              HLT_KANA1 varchar(400),
-              HLT_KANA2 varchar(400),
+              HLT_KANJI varchar(999),
+              HLT_KANA varchar(999),
+              HLT_KANA1 varchar(999),
+              HLT_KANA2 varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,HLT_CODE)
           )" }

@@ -5428,14 +5428,14 @@
               HLT_CODE numeric NOT NULL,
               HLGT_CODE numeric NOT NULL,
               SOC_CODE numeric NOT NULL,
-              PT_NAME varchar(120) NOT NULL,
-              HLT_NAME varchar(120) NOT NULL,
-              HLGT_NAME varchar(120) NOT NULL,
-              SOC_NAME varchar(120) NOT NULL,
-              SOC_ABBREV varchar(5) NOT NULL,
-              NULL_FIELD varchar(1),
+              PT_NAME varchar(999) NOT NULL,
+              HLT_NAME varchar(999) NOT NULL,
+              HLGT_NAME varchar(999) NOT NULL,
+              SOC_NAME varchar(999) NOT NULL,
+              SOC_ABBREV varchar(999) NOT NULL,
+              NULL_FIELD varchar(999),
               PT_SOC_CODE numeric,
-              PRIMARY_SOC_FG varchar(1),
+              PRIMARY_SOC_FG varchar(999),
               DELETED timestamp,
               PRIMARY KEY (GLOBAL_DICT_ID,PT_CODE,HLT_CODE,HLGT_CODE,SOC_CODE)
           )" }
@@ -5444,16 +5444,16 @@
           "CREATE TABLE rm_meddra_pref_term (
               GLOBAL_DICT_ID numeric NOT NULL,
               PT_CODE numeric NOT NULL,
-              PT_NAME_ENGLISH varchar(120) NOT NULL,
-              NULL_FIELD varchar(1),
+              PT_NAME_ENGLISH varchar(999) NOT NULL,
+              NULL_FIELD varchar(999),
               PT_SOC_CODE numeric,
-              PT_WHO_ART_CODE varchar(7),
+              PT_WHO_ART_CODE varchar(999),
               PT_HARTS_CODE numeric,
-              PT_COSTART_FG varchar(21),
-              PT_ICD9_CODE varchar(8),
-              PT_ICD9CM_CODE varchar(8),
-              PT_ICD10_CODE varchar(8),
-              PT_J_ART_CODE varchar(6),
+              PT_COSTART_FG varchar(999),
+              PT_ICD9_CODE varchar(999),
+              PT_ICD9CM_CODE varchar(999),
+              PT_ICD10_CODE varchar(999),
+              PT_J_ART_CODE varchar(999),
               DELETED timestamp,
               PRIMARY KEY (GLOBAL_DICT_ID,PT_CODE)
           )" }
@@ -5462,10 +5462,10 @@
           "CREATE TABLE rm_meddra_pref_term_j (
               GLOBAL_DICT_ID numeric NOT NULL,
               PT_CODE numeric NOT NULL,
-              PT_KANJI varchar(400),
-              PT_KANA varchar(400),
-              PT_KANA1 varchar(400),
-              PT_KANA2 varchar(400),
+              PT_KANJI varchar(999),
+              PT_KANA varchar(999),
+              PT_KANA1 varchar(999),
+              PT_KANA2 varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,PT_CODE)
           )" }

@@ -5473,16 +5473,16 @@
           "CREATE TABLE rm_meddra_pref_term_llt (
               GLOBAL_DICT_ID numeric NOT NULL,
               LLT_CODE numeric NOT NULL,
-              LLT_NAME_ENGLISH varchar(100) NOT NULL,
+              LLT_NAME_ENGLISH varchar(999) NOT NULL,
               PT_CODE numeric,
-              LLT_WHO_ART_CODE varchar(7),
+              LLT_WHO_ART_CODE varchar(999),
               LLT_HARTS_CODE numeric,
-              LLT_COSTART_FG varchar(21),
-              LLT_ICD9_CODE varchar(8),
-              LLT_ICD9CM_CODE varchar(8),
-              LLT_ICD10_CODE varchar(8),
-              LLT_CURRENCY varchar(1),
-              LLT_J_ART_CODE varchar(6),
+              LLT_COSTART_FG varchar(999),
+              LLT_ICD9_CODE varchar(999),
+              LLT_ICD9CM_CODE varchar(999),
+              LLT_ICD10_CODE varchar(999),
+              LLT_CURRENCY varchar(999),
+              LLT_J_ART_CODE varchar(999),
               DELETED timestamp,
               PRIMARY KEY (GLOBAL_DICT_ID,LLT_CODE)
           )" }
@@ -5491,11 +5491,11 @@
           "CREATE TABLE rm_meddra_pref_term_llt_j (
               GLOBAL_DICT_ID numeric NOT NULL,
               LLT_CODE numeric NOT NULL,
-              LLT_KANJI varchar(400),
-              LLT_JCURR varchar(10),
-              LLT_KANA varchar(600),
-              LLT_KANA1 varchar(600),
-              LLT_KANA2 varchar(600),
+              LLT_KANJI varchar(999),
+              LLT_JCURR varchar(999),
+              LLT_KANA varchar(999),
+              LLT_KANA1 varchar(999),
+              LLT_KANA2 varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,LLT_CODE)
           )" }

@@ -5506,11 +5506,11 @@
               TERM_CODE numeric NOT NULL,
               TERM_LEVEL numeric NOT NULL,
               TERM_SCOPE numeric NOT NULL,
-              TERM_CATEGORY varchar(1) NOT NULL,
+              TERM_CATEGORY varchar(999) NOT NULL,
               TERM_WEIGHT numeric NOT NULL,
-              TERM_STATUS varchar(1) NOT NULL,
-              TERM_ADDITION_VERSION varchar(5) NOT NULL,
-              TERM_LAST_MODIFIED_VERSION varchar(5) NOT NULL,
+              TERM_STATUS varchar(999) NOT NULL,
+              TERM_ADDITION_VERSION varchar(999) NOT NULL,
+              TERM_LAST_MODIFIED_VERSION varchar(999) NOT NULL,
               PRIMARY KEY (GLOBAL_DICT_ID,SMQ_CODE,TERM_CODE)
           )" }

@@ -5518,14 +5518,14 @@
           "CREATE TABLE rm_meddra_smq_list (
               GLOBAL_DICT_ID numeric NOT NULL,
               SMQ_CODE numeric NOT NULL,
-              SMQ_NAME varchar(100) NOT NULL,
+              SMQ_NAME varchar(999) NOT NULL,
               SMQ_LEVEL numeric NOT NULL,
-              SMQ_DESCRIPTION varchar(3000),
-              SMQ_SOURCE varchar(2000),
-              SMQ_NOTE varchar(2000),
-              MEDDRA_VERSION varchar(5) NOT NULL,
-              STATUS varchar(1) NOT NULL,
-              SMQ_ALGORITHM varchar(100) NOT NULL,
+              SMQ_DESCRIPTION varchar(999),
+              SMQ_SOURCE varchar(999),
+              SMQ_NOTE varchar(999),
+              MEDDRA_VERSION varchar(999) NOT NULL,
+              STATUS varchar(999) NOT NULL,
+              SMQ_ALGORITHM varchar(999) NOT NULL,
               PRIMARY KEY (GLOBAL_DICT_ID,SMQ_CODE)
           )" }

@@ -5533,8 +5533,8 @@
           "CREATE TABLE rm_meddra_smq_list_j (
               GLOBAL_DICT_ID numeric NOT NULL,
               SMQ_CODE numeric,
-              SMQ_KANJI varchar(120),
-              SMQ_DESC_KANJI varchar(4000)
+              SMQ_KANJI varchar(999),
+              SMQ_DESC_KANJI varchar(999)
           )" }

     { "rm_meddra_smq_term"
@@ -5542,15 +5542,15 @@
               GLOBAL_DICT_ID numeric NOT NULL,
               SMQ_ID numeric NOT NULL,
               SMQ_CODE numeric,
-              SMQ_NAME varchar(100),
-              SMQ_NB_NAME varchar(120),
+              SMQ_NAME varchar(999),
+              SMQ_NB_NAME varchar(999),
               SMQ_LEVEL numeric,
-              SMQ_DESCRIPTION varchar(3000),
-              SMQ_SOURCE varchar(2000),
-              SMQ_NOTE varchar(2000),
-              MEDDRA_VERSION varchar(5),
-              STATUS varchar(1),
-              SMQ_ALGORITHM varchar(100),
+              SMQ_DESCRIPTION varchar(999),
+              SMQ_SOURCE varchar(999),
+              SMQ_NOTE varchar(999),
+              MEDDRA_VERSION varchar(999),
+              STATUS varchar(999),
+              SMQ_ALGORITHM varchar(999),
               SMQ_TYPE numeric,
               CREATE_DATE timestamp,
               MODIFIED_DATE timestamp,
@@ -5566,13 +5566,13 @@
               TERM_CODE numeric,
               TERM_LEVEL numeric,
               TERM_SCOPE numeric,
-              TERM_CATEGORY varchar(1),
+              TERM_CATEGORY varchar(999),
               TERM_WEIGHT numeric,
-              TERM_STATUS varchar(1),
-              TERM_NAME_ENGLISH varchar(120),
-              LLT_CURRENCY varchar(1),
-              TERM_ADDITION_VERSION varchar(5),
-              TERM_LAST_MODIFIED_VERSION varchar(5),
+              TERM_STATUS varchar(999),
+              TERM_NAME_ENGLISH varchar(999),
+              LLT_CURRENCY varchar(999),
+              TERM_ADDITION_VERSION varchar(999),
+              TERM_LAST_MODIFIED_VERSION varchar(999),
               CREATE_DATE timestamp,
               PRIMARY KEY (GLOBAL_DICT_ID,SMQ_TERM_ID)
           )" }
@@ -5581,15 +5581,15 @@
           "CREATE TABLE rm_meddra_soc (
               GLOBAL_DICT_ID numeric NOT NULL,
               SOC_CODE numeric NOT NULL,
-              SOC_NAME_ENGLISH varchar(120) NOT NULL,
-              SOC_ABBREV varchar(5) NOT NULL,
-              SOC_WHO_ART_CODE varchar(7),
+              SOC_NAME_ENGLISH varchar(999) NOT NULL,
+              SOC_ABBREV varchar(999) NOT NULL,
+              SOC_WHO_ART_CODE varchar(999),
               SOC_HARTS_CODE numeric,
-              SOC_COSTART_FG varchar(21),
-              SOC_ICD9_CODE varchar(8),
-              SOC_ICD9CM_CODE varchar(8),
-              SOC_ICD10_CODE varchar(8),
-              SOC_J_ART_CODE varchar(6),
+              SOC_COSTART_FG varchar(999),
+              SOC_ICD9_CODE varchar(999),
+              SOC_ICD9CM_CODE varchar(999),
+              SOC_ICD10_CODE varchar(999),
+              SOC_J_ART_CODE varchar(999),
               DELETED timestamp,
               PRIMARY KEY (GLOBAL_DICT_ID,SOC_CODE)
           )" }
@@ -5615,11 +5615,11 @@
           "CREATE TABLE rm_meddra_soc_j (
               GLOBAL_DICT_ID numeric NOT NULL,
               SOC_CODE numeric NOT NULL,
-              SOC_KANJI varchar(400),
+              SOC_KANJI varchar(999),
               SOC_ORDER numeric,
-              SOC_KANA varchar(400),
-              SOC_KANA1 varchar(400),
-              SOC_KANA2 varchar(400),
+              SOC_KANA varchar(999),
+              SOC_KANA1 varchar(999),
+              SOC_KANA2 varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,SOC_CODE)
           )" }

@@ -5627,8 +5627,8 @@
           "CREATE TABLE rm_meddra_spec_cat (
               GLOBAL_DICT_ID numeric NOT NULL,
               SPEC_CODE numeric NOT NULL,
-              SPEC_NAME varchar(120) NOT NULL,
-              SPEC_ABBREV varchar(10) NOT NULL,
+              SPEC_NAME varchar(999) NOT NULL,
+              SPEC_ABBREV varchar(999) NOT NULL,
               DELETED timestamp
           )" }

@@ -5645,8 +5645,8 @@
               GLOBAL_DICT_ID numeric NOT NULL,
               SYN_ID numeric NOT NULL,
               LLT_CODE numeric NOT NULL,
-              SYN varchar(255) NOT NULL,
-              SYN_J varchar(255),
+              SYN varchar(999) NOT NULL,
+              SYN_J varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,SYN_ID)
           )" }

@@ -5657,7 +5657,7 @@
               SEQ_NUM numeric NOT NULL,
               ROUTE_DATE timestamp,
               USER_ID numeric,
-              COMMENT_TXT varchar(1000),
+              COMMENT_TXT varchar(999),
               TO_STATE_ID numeric,
               FROM_REPORT_STATE_ID numeric,
               JUSTIFICATION_ID numeric,
@@ -5671,8 +5671,8 @@
               CASE_ID numeric NOT NULL,
               SEQ_NUM numeric,
               UNBLIND_OK numeric(1),
-              BLIND_NAME varchar(70),
-              BLIND_NAME_J varchar(70)
+              BLIND_NAME varchar(999),
+              BLIND_NAME_J varchar(999)
           )" }

     { "rm_who_ard"
@@ -5685,11 +5685,11 @@
               SYSTEM_ORGAN_CLASS1 char(4),
               SYSTEM_ORGAN_CLASS2 char(4),
               SYSTEM_ORGAN_CLASS3 char(4),
-              TEXT_ENGLISH varchar(100),
-              TEXT_FRENCH varchar(100),
-              TEXT_PORTUGUESE varchar(100),
-              TEXT_GERMAN varchar(100),
-              TEXT_SPANISH varchar(100),
+              TEXT_ENGLISH varchar(999),
+              TEXT_FRENCH varchar(999),
+              TEXT_PORTUGUESE varchar(999),
+              TEXT_GERMAN varchar(999),
+              TEXT_SPANISH varchar(999),
               YEAR_QUARTER char(3),
               DELETED timestamp,
               PRIMARY KEY (GLOBAL_DICT_ID,ADV_REACTION_NUMBER,SEQ_NUM)
@@ -5698,13 +5698,13 @@
     { "rm_who_atc_classification"
           "CREATE TABLE rm_who_atc_classification (
               GLOBAL_DICT_ID numeric NOT NULL,
-              DRUG_RECORD_NUMBER varchar(6) NOT NULL,
-              SEQ_NUM1 varchar(2) NOT NULL,
-              SEQ_NUM2 varchar(3) NOT NULL,
-              CHECK_DIGIT varchar(1) NOT NULL,
-              ATC_CODE varchar(7) NOT NULL,
-              YEAR_QUARTER varchar(3),
-              OFFICIAL_ATC_CODE varchar(1),
+              DRUG_RECORD_NUMBER varchar(999) NOT NULL,
+              SEQ_NUM1 varchar(999) NOT NULL,
+              SEQ_NUM2 varchar(999) NOT NULL,
+              CHECK_DIGIT varchar(999) NOT NULL,
+              ATC_CODE varchar(999) NOT NULL,
+              YEAR_QUARTER varchar(999),
+              OFFICIAL_ATC_CODE varchar(999),
               DELETED timestamp,
               PRIMARY KEY (GLOBAL_DICT_ID,DRUG_RECORD_NUMBER,SEQ_NUM1,SEQ_NUM2,CHECK_DIGIT,ATC_CODE)
           )" }
@@ -5712,9 +5712,9 @@
     { "rm_who_atc_code"
           "CREATE TABLE rm_who_atc_code (
               GLOBAL_DICT_ID numeric NOT NULL,
-              ATC_CODE varchar(7) NOT NULL,
-              ATC_LEVEL varchar(1),
-              ATC_TEXT varchar(50),
+              ATC_CODE varchar(999) NOT NULL,
+              ATC_LEVEL varchar(999),
+              ATC_TEXT varchar(999),
               DELETED timestamp,
               PRIMARY KEY (GLOBAL_DICT_ID,ATC_CODE)
           )" }
@@ -5723,7 +5723,7 @@
           "CREATE TABLE rm_who_countries (
               GLOBAL_DICT_ID numeric NOT NULL,
               COUNTRY_CODE char(3) NOT NULL,
-              COUNTRY_NAME varchar(30),
+              COUNTRY_NAME varchar(999),
               DELETED timestamp,
               PRIMARY KEY (GLOBAL_DICT_ID,COUNTRY_CODE)
           )" }
@@ -5731,31 +5731,31 @@
     { "rm_who_drug_c_atc_code"
           "CREATE TABLE rm_who_drug_c_atc_code (
               GLOBAL_DICT_ID numeric NOT NULL,
-              ATC_CODE varchar(10) NOT NULL,
+              ATC_CODE varchar(999) NOT NULL,
               level_val numeric(1),
-              TEXT varchar(110),
+              TEXT varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,ATC_CODE)
           )" }

     { "rm_who_drug_c_country"
           "CREATE TABLE rm_who_drug_c_country (
               GLOBAL_DICT_ID numeric NOT NULL,
-              COUNTRY_CODE varchar(10) NOT NULL,
-              COUNTRY_NAME varchar(80),
+              COUNTRY_CODE varchar(999) NOT NULL,
+              COUNTRY_NAME varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,COUNTRY_CODE)
           )" }

     { "rm_who_drug_c_ingredients"
           "CREATE TABLE rm_who_drug_c_ingredients (
               GLOBAL_DICT_ID numeric NOT NULL,
-              INGREDIENT_ID varchar(10) NOT NULL,
-              CREATE_DATE varchar(8),
-              SUBSTANCE_ID varchar(10),
-              QUANTITY varchar(15),
-              QUANTITY_2 varchar(15),
-              UNIT varchar(10),
-              PHARM_PRODUCT_ID varchar(10),
-              MEDICINAL_PROD_ID varchar(10),
+              INGREDIENT_ID varchar(999) NOT NULL,
+              CREATE_DATE varchar(999),
+              SUBSTANCE_ID varchar(999),
+              QUANTITY varchar(999),
+              QUANTITY_2 varchar(999),
+              UNIT varchar(999),
+              PHARM_PRODUCT_ID varchar(999),
+              MEDICINAL_PROD_ID varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,INGREDIENT_ID)
           )" }

@@ -5763,163 +5763,163 @@
           "CREATE TABLE rm_who_drug_c_master (
               GLOBAL_DICT_ID numeric NOT NULL,
               PK_ID numeric NOT NULL,
-              MEDICINAL_PROD_ID varchar(10) NOT NULL,
-              DRUG_RECORD_NUMBER varchar(6),
-              SEQ_NUM1 varchar(2),
-              SEQ_NUM2 varchar(3),
-              CODE varchar(13),
-              PROD_TYPE_ID varchar(10),
-              DRUG_NAME varchar(80),
-              SUBSTANCE_NAME varchar(110),
-              MANU_NAME varchar(80),
-              COUNTRY varchar(10),
-              PHARM_FORM_ID varchar(10),
-              FORMULATION varchar(80),
-              STRENGTH_ID varchar(10),
-              STRENGTH varchar(500),
-              GENERIC varchar(1),
-              ATC_CODE varchar(10),
-              ATC_TEXT varchar(110),
-              NAME_SPECIFIER varchar(30),
+              MEDICINAL_PROD_ID varchar(999) NOT NULL,
+              DRUG_RECORD_NUMBER varchar(999),
+              SEQ_NUM1 varchar(999),
+              SEQ_NUM2 varchar(999),
+              CODE varchar(999),
+              PROD_TYPE_ID varchar(999),
+              DRUG_NAME varchar(999),
+              SUBSTANCE_NAME varchar(999),
+              MANU_NAME varchar(999),
+              COUNTRY varchar(999),
+              PHARM_FORM_ID varchar(999),
+              FORMULATION varchar(999),
+              STRENGTH_ID varchar(999),
+              STRENGTH varchar(999),
+              GENERIC varchar(999),
+              ATC_CODE varchar(999),
+              ATC_TEXT varchar(999),
+              NAME_SPECIFIER varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,PK_ID)
           )" }

     { "rm_who_drug_c_medicinal_prod"
           "CREATE TABLE rm_who_drug_c_medicinal_prod (
               GLOBAL_DICT_ID numeric NOT NULL,
-              MEDICINAL_PROD_ID varchar(10) NOT NULL,
-              ICH_MEDICINAL_PROD_ID varchar(35),
-              DRUG_RECORD_NUMBER varchar(6),
-              SEQ_NUM1 varchar(2),
-              SEQ_NUM2 varchar(3),
-              SEQ_NUM3 varchar(10),
-              SEQ_NUM4 varchar(10),
-              GENERIC varchar(1),
-              DRUG_NAME varchar(80),
-              NAME_SPECIFIER varchar(30),
-              MA_NUMBER varchar(30),
-              MA_DATE varchar(8),
-              MA_WITHDRAW_DATE varchar(8),
-              COUNTRY varchar(10),
-              COMPANY varchar(10),
-              MA_HOLDER varchar(10),
-              SOURCE_CODE varchar(10),
-              SOURCE_COUNTRY varchar(10),
-              SOURCE_YEAR varchar(3),
-              PRODUCT_TYPE varchar(10),
-              PRODUCT_GROUP varchar(10),
-              CREATE_DATE varchar(8),
-              DATE_CHANGED varchar(8),
+              MEDICINAL_PROD_ID varchar(999) NOT NULL,
+              ICH_MEDICINAL_PROD_ID varchar(999),
+              DRUG_RECORD_NUMBER varchar(999),
+              SEQ_NUM1 varchar(999),
+              SEQ_NUM2 varchar(999),
+              SEQ_NUM3 varchar(999),
+              SEQ_NUM4 varchar(999),
+              GENERIC varchar(999),
+              DRUG_NAME varchar(999),
+              NAME_SPECIFIER varchar(999),
+              MA_NUMBER varchar(999),
+              MA_DATE varchar(999),
+              MA_WITHDRAW_DATE varchar(999),
+              COUNTRY varchar(999),
+              COMPANY varchar(999),
+              MA_HOLDER varchar(999),
+              SOURCE_CODE varchar(999),
+              SOURCE_COUNTRY varchar(999),
+              SOURCE_YEAR varchar(999),
+              PRODUCT_TYPE varchar(999),
+              PRODUCT_GROUP varchar(999),
+              CREATE_DATE varchar(999),
+              DATE_CHANGED varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,MEDICINAL_PROD_ID)
           )" }

     { "rm_who_drug_c_organization"
           "CREATE TABLE rm_who_drug_c_organization (
               GLOBAL_DICT_ID numeric NOT NULL,
-              ORGANIZATION_ID varchar(10) NOT NULL,
-              NAME varchar(80),
-              COUNTRY_CODE varchar(10),
+              ORGANIZATION_ID varchar(999) NOT NULL,
+              NAME varchar(999),
+              COUNTRY_CODE varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,ORGANIZATION_ID)
           )" }

     { "rm_who_drug_c_pharma_form"
           "CREATE TABLE rm_who_drug_c_pharma_form (
               GLOBAL_DICT_ID numeric NOT NULL,
-              PHARM_FORM_ID varchar(10) NOT NULL,
-              TEXT varchar(80),
+              PHARM_FORM_ID varchar(999) NOT NULL,
+              TEXT varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,PHARM_FORM_ID)
           )" }

     { "rm_who_drug_c_pharma_product"
           "CREATE TABLE rm_who_drug_c_pharma_product (
               GLOBAL_DICT_ID numeric NOT NULL,
-              PHARM_PRODUCT_ID varchar(10) NOT NULL,
-              PHARMACEUTICAL_FORM varchar(10),
-              ROUTE_OF_ADMIN varchar(10),
-              MEDICINAL_PROD_ID varchar(10),
-              NUMBER_OF_INGREDIENTS varchar(2),
-              CREATE_DATE varchar(8),
+              PHARM_PRODUCT_ID varchar(999) NOT NULL,
+              PHARMACEUTICAL_FORM varchar(999),
+              ROUTE_OF_ADMIN varchar(999),
+              MEDICINAL_PROD_ID varchar(999),
+              NUMBER_OF_INGREDIENTS varchar(999),
+              CREATE_DATE varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,PHARM_PRODUCT_ID)
           )" }

     { "rm_who_drug_c_product_group"
           "CREATE TABLE rm_who_drug_c_product_group (
               GLOBAL_DICT_ID numeric NOT NULL,
-              PRODUCT_GROUP_ID varchar(10) NOT NULL,
-              PRODUCT_GROUP_NAME varchar(60),
-              DATE_RECORDED varchar(8),
+              PRODUCT_GROUP_ID varchar(999) NOT NULL,
+              PRODUCT_GROUP_NAME varchar(999),
+              DATE_RECORDED varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,PRODUCT_GROUP_ID)
           )" }

     { "rm_who_drug_c_product_type"
           "CREATE TABLE rm_who_drug_c_product_type (
               GLOBAL_DICT_ID numeric NOT NULL,
-              PROD_TYPE_ID varchar(10) NOT NULL,
-              TEXT varchar(80),
+              PROD_TYPE_ID varchar(999) NOT NULL,
+              TEXT varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,PROD_TYPE_ID)
           )" }

     { "rm_who_drug_c_source"
           "CREATE TABLE rm_who_drug_c_source (
               GLOBAL_DICT_ID numeric NOT NULL,
-              SOURCE_CODE varchar(10) NOT NULL,
-              SOURCE varchar(80),
-              COUNTRY_CODE varchar(10),
+              SOURCE_CODE varchar(999) NOT NULL,
+              SOURCE varchar(999),
+              COUNTRY_CODE varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,SOURCE_CODE)
           )" }

     { "rm_who_drug_c_strength"
           "CREATE TABLE rm_who_drug_c_strength (
               GLOBAL_DICT_ID numeric NOT NULL,
-              STRENGTH_ID varchar(10) NOT NULL,
-              TEXT varchar(500),
+              STRENGTH_ID varchar(999) NOT NULL,
+              TEXT varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,STRENGTH_ID)
           )" }

     { "rm_who_drug_c_substance"
           "CREATE TABLE rm_who_drug_c_substance (
               GLOBAL_DICT_ID numeric NOT NULL,
-              SUBSTANCE_ID varchar(10) NOT NULL,
-              CAS_NUMBER varchar(10),
-              LANGUAGE_CODE varchar(10),
-              SUBSTANCE_NAME varchar(110),
-              SOURCE_YEAR varchar(3),
-              SOURCE_CODE varchar(10),
+              SUBSTANCE_ID varchar(999) NOT NULL,
+              CAS_NUMBER varchar(999),
+              LANGUAGE_CODE varchar(999),
+              SUBSTANCE_NAME varchar(999),
+              SOURCE_YEAR varchar(999),
+              SOURCE_CODE varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,SUBSTANCE_ID)
           )" }

     { "rm_who_drug_c_therapeutic_grp"
           "CREATE TABLE rm_who_drug_c_therapeutic_grp (
               GLOBAL_DICT_ID numeric NOT NULL,
-              THERAP_GROUP_ID varchar(10) NOT NULL,
-              ATC_CODE varchar(10),
-              CREATE_DATE varchar(8),
-              OFFICIAL_ATC_CODE varchar(1),
-              MEDICINAL_PROD_ID varchar(10),
+              THERAP_GROUP_ID varchar(999) NOT NULL,
+              ATC_CODE varchar(999),
+              CREATE_DATE varchar(999),
+              OFFICIAL_ATC_CODE varchar(999),
+              MEDICINAL_PROD_ID varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,THERAP_GROUP_ID)
           )" }

     { "rm_who_drug_c_unit"
           "CREATE TABLE rm_who_drug_c_unit (
               GLOBAL_DICT_ID numeric NOT NULL,
-              UNIT_ID varchar(10) NOT NULL,
-              TEXT varchar(40),
+              UNIT_ID varchar(999) NOT NULL,
+              TEXT varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,UNIT_ID)
           )" }

     { "rm_who_drug_c_unit_l"
           "CREATE TABLE rm_who_drug_c_unit_l (
               GLOBAL_DICT_ID numeric NOT NULL,
-              UNIT_ID varchar(10) NOT NULL,
-              TEXT varchar(100),
+              UNIT_ID varchar(999) NOT NULL,
+              TEXT varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,UNIT_ID)
           )" }

     { "rm_who_drug_c_unit_x"
           "CREATE TABLE rm_who_drug_c_unit_x (
               GLOBAL_DICT_ID numeric NOT NULL,
-              UNIT_ID varchar(10) NOT NULL,
-              TEXT varchar(40),
+              UNIT_ID varchar(999) NOT NULL,
+              TEXT varchar(999),
               PRIMARY KEY (GLOBAL_DICT_ID,UNIT_ID)
           )" }

@@ -5937,7 +5937,7 @@
               NUM_INGREDIENTS char(2),
               SALT_CODE char(1),
               YEAR_QUARTER char(3),
-              DRUG_NAME varchar(70),
+              DRUG_NAME varchar(999),
               DELETED timestamp,
               PRIMARY KEY (GLOBAL_DICT_ID,DRUG_RECORD_NUMBER,SEQ_NUM1,SEQ_NUM2,CHECK_DIGIT)
           )" }
@@ -5947,7 +5947,7 @@
               GLOBAL_DICT_ID numeric NOT NULL,
               SOURCE_CODE char(4) NOT NULL,
               COUNTRY_CODE char(3),
-              SOURCE varchar(70),
+              SOURCE varchar(999),
               DELETED timestamp,
               PRIMARY KEY (GLOBAL_DICT_ID,SOURCE_CODE)
           )" }
@@ -5968,7 +5968,7 @@
               GLOBAL_DICT_ID numeric NOT NULL,
               COMPANY_CODE char(5) NOT NULL,
               COUNTRY_CODE char(3),
-              NAME varchar(100),
+              NAME varchar(999),
               DELETED timestamp,
               PRIMARY KEY (GLOBAL_DICT_ID,COMPANY_CODE)
           )" }
@@ -5977,11 +5977,11 @@
           "CREATE TABLE rm_who_soc (
               GLOBAL_DICT_ID numeric NOT NULL,
               SYSTEM_ORGAN_CLASS_CODE char(4) NOT NULL,
-              TEXT_ENGLISH varchar(100),
-              TEXT_FRENCH varchar(100),
-              TEXT_GERMAN varchar(100),
-              TEXT_SPANISH varchar(100),
-              TEXT_PORTUGUESE varchar(100),
+              TEXT_ENGLISH varchar(999),
+              TEXT_FRENCH varchar(999),
+              TEXT_GERMAN varchar(999),
+              TEXT_SPANISH varchar(999),
+              TEXT_PORTUGUESE varchar(999),
               DELETED timestamp,
               PRIMARY KEY (GLOBAL_DICT_ID,SYSTEM_ORGAN_CLASS_CODE)
           )" }
@@ -5991,7 +5991,7 @@
               GLOBAL_DICT_ID numeric NOT NULL,
               CAS_NUMBER char(10) NOT NULL,
               LANGUAGE_CODE char(2),
-              SUBSTANCE_NAME varchar(45),
+              SUBSTANCE_NAME varchar(999),
               SOURCE_YEAR char(2),
               SOURCE_CODE char(4),
               DELETED timestamp,