/**Begin D:\PDM_UPGRADE\PDM1\IFM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_CURRENTINTBILL' AND KSQL_COL_NAME IN ('FDEPOSIT')) 
 ALTER TABLE T_IFM_CURRENTINTBILL ADD (FDEPOSIT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_CURRENTINTBILL' AND KSQL_COL_NAME IN ('FINTAMOUNT')) 
 ALTER TABLE T_IFM_CURRENTINTBILL ADD (FINTAMOUNT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_CURRENTINTBILL' AND KSQL_COL_NAME IN ('FOVERDRAFT')) 
 ALTER TABLE T_IFM_CURRENTINTBILL ADD (FOVERDRAFT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_CURRENTINTBILL' AND KSQL_COL_NAME IN ('FOVERINTAMT')) 
 ALTER TABLE T_IFM_CURRENTINTBILL ADD (FOVERINTAMT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_CURRINTBILL_ENTRY' AND KSQL_COL_NAME IN ('FINTTYPE')) 
 ALTER TABLE T_IFM_CURRINTBILL_ENTRY ADD (FINTTYPE NVARCHAR(30) 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 ('FINTOBJECTID')) 
 ALTER TABLE T_IFM_INTBILL_BATCH_INT ADD (FINTOBJECTID BIGINT DEFAULT 0 NOT NULL );

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