/**Begin D:\willian\PDM_UPGRADE\PDM1\EB_table.sql **/
  IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_ADJDETAIL' AND KSQL_COL_NAME ='FCUSTOMDIM9') 
 ALTER TABLE T_EB_ADJDETAIL ADD (FCUSTOMDIM9 BIGINT DEFAULT 0 NOT NULL);

  IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_ADJDETAIL' AND KSQL_COL_NAME ='FCUSTOMDIM10') 
 ALTER TABLE T_EB_ADJDETAIL ADD (FCUSTOMDIM10 BIGINT DEFAULT 0 NOT NULL);
 
   IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_ADJDETAIL' AND KSQL_COL_NAME ='FCUSTOMDIM11') 
 ALTER TABLE T_EB_ADJDETAIL ADD (FCUSTOMDIM11 BIGINT DEFAULT 0 NOT NULL);
 
   IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_ADJDETAIL' AND KSQL_COL_NAME ='FCUSTOMDIM12') 
 ALTER TABLE T_EB_ADJDETAIL ADD (FCUSTOMDIM12 BIGINT DEFAULT 0 NOT NULL);
 
   IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_ADJDETAIL' AND KSQL_COL_NAME ='FCUSTOMDIM13') 
 ALTER TABLE T_EB_ADJDETAIL ADD (FCUSTOMDIM13 BIGINT DEFAULT 0 NOT NULL);
 
   IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_ADJDETAIL' AND KSQL_COL_NAME ='FCUSTOMDIM14') 
 ALTER TABLE T_EB_ADJDETAIL ADD (FCUSTOMDIM14 BIGINT DEFAULT 0 NOT NULL);
 
   IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_ADJDETAIL' AND KSQL_COL_NAME ='FCUSTOMDIM15') 
 ALTER TABLE T_EB_ADJDETAIL ADD (FCUSTOMDIM15 BIGINT DEFAULT 0 NOT NULL);
 
   IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_ADJDETAIL' AND KSQL_COL_NAME ='FCUSTOMDIM16') 
 ALTER TABLE T_EB_ADJDETAIL ADD (FCUSTOMDIM16 BIGINT DEFAULT 0 NOT NULL);
 
   IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_ADJDETAIL' AND KSQL_COL_NAME ='FCUSTOMDIM17') 
 ALTER TABLE T_EB_ADJDETAIL ADD (FCUSTOMDIM17 BIGINT DEFAULT 0 NOT NULL);
 
   IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_ADJDETAIL' AND KSQL_COL_NAME ='FCUSTOMDIM18') 
 ALTER TABLE T_EB_ADJDETAIL ADD (FCUSTOMDIM18 BIGINT DEFAULT 0 NOT NULL);
 
   IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_ADJDETAIL' AND KSQL_COL_NAME ='FCUSTOMDIM19') 
 ALTER TABLE T_EB_ADJDETAIL ADD (FCUSTOMDIM19 BIGINT DEFAULT 0 NOT NULL);
 
   IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_ADJDETAIL' AND KSQL_COL_NAME ='FCUSTOMDIM20') 
 ALTER TABLE T_EB_ADJDETAIL ADD (FCUSTOMDIM20 BIGINT DEFAULT 0 NOT NULL);

/**End D:\willian\PDM_UPGRADE\PDM1\EB_table.sql **/
