


IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AP_TOLERANCERANGE' AND KSQL_COL_NAME ='FDIMENSIONPK1_TAG')
 ALTER TABLE T_AP_TOLERANCERANGE ADD (FDIMENSIONPK1_TAG NCLOB );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AP_TOLERANCERANGE' AND KSQL_COL_NAME ='FDIMENSIONPK2_TAG')
 ALTER TABLE T_AP_TOLERANCERANGE ADD (FDIMENSIONPK2_TAG NCLOB );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AP_TOLERANCERANGE' AND KSQL_COL_NAME ='FDIMENSIONPK3_TAG')
 ALTER TABLE T_AP_TOLERANCERANGE ADD (FDIMENSIONPK3_TAG NCLOB );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AP_TOLERANCERANGE' AND KSQL_COL_NAME ='FDIMENSIONPK4_TAG')
 ALTER TABLE T_AP_TOLERANCERANGE ADD (FDIMENSIONPK4_TAG NCLOB );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AP_TOLERANCERANGE' AND KSQL_COL_NAME ='FDIMENSIONPK5_TAG')
 ALTER TABLE T_AP_TOLERANCERANGE ADD (FDIMENSIONPK5_TAG NCLOB );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AP_TOLERANCERANGE' AND KSQL_COL_NAME ='FDIMENSIONPK6_TAG')
 ALTER TABLE T_AP_TOLERANCERANGE ADD (FDIMENSIONPK6_TAG NCLOB );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AP_TOLERANCERANGE' AND KSQL_COL_NAME ='FDIMENSIONPK7_TAG')
 ALTER TABLE T_AP_TOLERANCERANGE ADD (FDIMENSIONPK7_TAG NCLOB );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AP_TOLERANCERANGE' AND KSQL_COL_NAME ='FDIMENSIONPK8_TAG')
 ALTER TABLE T_AP_TOLERANCERANGE ADD (FDIMENSIONPK8_TAG NCLOB );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AP_TOLERANCERANGE' AND KSQL_COL_NAME ='FDIMENSIONPK9_TAG')
 ALTER TABLE T_AP_TOLERANCERANGE ADD (FDIMENSIONPK9_TAG NCLOB );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AP_TOLERANCERANGE' AND KSQL_COL_NAME ='FDIMENSIONPK10_TAG')
 ALTER TABLE T_AP_TOLERANCERANGE ADD (FDIMENSIONPK10_TAG NCLOB );



IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AP_TOLERANCERULEENTRY' AND KSQL_COL_NAME ='FDIMENSIONMAP_TAG')
 ALTER TABLE T_AP_TOLERANCERULEENTRY ADD (FDIMENSIONMAP_TAG NCLOB );