IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FMM_STANDARDTASKENTRY' AND KSQL_COL_NAME ='FCARDNUMBER') 
 ALTER TABLE T_FMM_STANDARDTASKENTRY ADD (FCARDNUMBER BIGINT DEFAULT 0 NOT NULL );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PMPD_PROJECT_MCC' AND KSQL_COL_NAME ='FPLANNER') 
 ALTER TABLE T_PMPD_PROJECT_MCC ADD (FPLANNER BIGINT DEFAULT 0 NOT NULL );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PMPD_PROJECT_MCC' AND KSQL_COL_NAME ='FWORKCENTER') 
 ALTER TABLE T_PMPD_PROJECT_MCC ADD (FWORKCENTER BIGINT DEFAULT 0 NOT NULL );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FMM_PROJECT_CHANGE' AND KSQL_COL_NAME ='FPROJECTTYPE') 
 ALTER TABLE T_FMM_PROJECT_CHANGE ADD (FPROJECTTYPE NVARCHAR(50) DEFAULT ' ' NOT NULL);
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PMPD_PROJECT_MCC' AND KSQL_COL_NAME ='FCABINCONFIG') 
 ALTER TABLE T_PMPD_PROJECT_MCC ADD (FCABINCONFIG BIGINT DEFAULT 0 NOT NULL );


 

 