/**Begin D:\PDM_UPGRADE\PDM1\CFM_table.sql **/

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_INTBILL_BATCH_INT' AND KSQL_COL_NAME IN ('FPAYEETYPE'))
 ALTER TABLE T_IFM_INTBILL_BATCH_INT ADD (FPAYEETYPE NVARCHAR(80) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_INTBILL_BATCH_INT' AND KSQL_COL_NAME IN ('FPAYEEID'))
 ALTER TABLE T_IFM_INTBILL_BATCH_INT ADD (FPAYEEID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_INTBILL_BATCH_INT' AND KSQL_COL_NAME IN ('FPAYEETEXT'))
 ALTER TABLE T_IFM_INTBILL_BATCH_INT ADD (FPAYEETEXT NVARCHAR(80) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_INTBILL_BATCH_INT' AND KSQL_COL_NAME IN ('FPAYEEBANKID'))
 ALTER TABLE T_IFM_INTBILL_BATCH_INT ADD (FPAYEEBANKID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_INTBILL_BATCH_INT' AND KSQL_COL_NAME IN ('FPAYEEACCTTEXT'))
 ALTER TABLE T_IFM_INTBILL_BATCH_INT ADD (FPAYEEACCTTEXT NVARCHAR(80) DEFAULT ' ' NOT NULL );

/**End D:\PDM_UPGRADE\PDM1\CFM_table.sql **/
