/**Begin D:\tmc\PDM_UPGRADE\pdm1\IFM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_ACCOUNTFROZEN' AND KSQL_COL_NAME IN ('FCAPITALORGID'))
ALTER TABLE T_IFM_ACCOUNTFROZEN ADD (FCAPITALORGID BIGINT DEFAULT 0 NOT NULL );

/**End D:\tmc\PDM_UPGRADE\pdm1\IFM_table.sql **/
/**Begin D:\PDM\PDM_UPGRADE\PDM1\IFM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_INNERACCT_E' AND KSQL_COL_NAME IN ('FCHANGEUSER'))
 ALTER TABLE T_IFM_INNERACCT_E ADD (FCHANGEUSER BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_INNERACCT_E' AND KSQL_COL_NAME IN ('FCHANGEDATE'))
 ALTER TABLE T_IFM_INNERACCT_E ADD (FCHANGEDATE DATETIME );

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