IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_FCDATATSENTRY' AND KSQL_COL_NAME ='FPROJECTID') 
 ALTER TABLE T_MDS_FCDATATSENTRY ADD (FPROJECTID  BIGINT DEFAULT 0 NOT NULL  );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_FCDATADTLENT' AND KSQL_COL_NAME ='FPROJECTID') 
 ALTER TABLE T_MDS_FCDATADTLENT ADD (FPROJECTID  BIGINT DEFAULT 0 NOT NULL  );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_FCDATADTLENTBK' AND KSQL_COL_NAME ='FPROJECTID') 
 ALTER TABLE T_MDS_FCDATADTLENTBK ADD (FPROJECTID  BIGINT DEFAULT 0 NOT NULL  );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_RECEIVEDATA' AND KSQL_COL_NAME ='FPROJECTID') 
 ALTER TABLE T_MDS_RECEIVEDATA ADD (FPROJECTID  BIGINT DEFAULT 0 NOT NULL  );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_FCDATATSENTRY_KZ' AND KSQL_COL_NAME ='FPROJECTID')
 ALTER TABLE T_MDS_FCDATATSENTRY_KZ ADD (FPROJECTID  BIGINT DEFAULT 0 NOT NULL  );
