/**Begin D:\PDM_UPGRADE\PDM1\IFM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_DEDUCTION' AND KSQL_COL_NAME IN ('FRECACCBANKNAME'))
 ALTER TABLE T_IFM_DEDUCTION ADD (FRECACCBANKNAME NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_DEDUCTION' AND KSQL_COL_NAME IN ('FRECBANKNUMBER'))
 ALTER TABLE T_IFM_DEDUCTION ADD (FRECBANKNUMBER NVARCHAR(30) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_DEDUCTION' AND KSQL_COL_NAME IN ('FSETTLETTYPEID'))
 ALTER TABLE T_IFM_DEDUCTION ADD (FSETTLETTYPEID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_DEDUCTION' AND KSQL_COL_NAME IN ('FPAYMENTCHANNEL'))
 ALTER TABLE T_IFM_DEDUCTION ADD (FPAYMENTCHANNEL NVARCHAR(30) DEFAULT ' ' NOT NULL );
