/**Begin D:\PDM_UPGRADE\PDM\补充多语言文本字段\CFM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_ACCOUNTACCEPT' AND KSQL_COL_NAME IN ('FCLOSEREASON'))
 ALTER TABLE T_IFM_ACCOUNTACCEPT ADD (FCLOSEREASON NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_ACCOUNTACCEPT' AND KSQL_COL_NAME IN ('FOPENREASON'))
 ALTER TABLE T_IFM_ACCOUNTACCEPT ADD (FOPENREASON NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_ACCOUNTACCEPT' AND KSQL_COL_NAME IN ('FACCTNAME'))
 ALTER TABLE T_IFM_ACCOUNTACCEPT ADD (FACCTNAME NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_ACCOUNTACCEPT' AND KSQL_COL_NAME IN ('FCOMMENT'))
 ALTER TABLE T_IFM_ACCOUNTACCEPT ADD (FCOMMENT NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_BIZDEALBILL' AND KSQL_COL_NAME IN ('FCONTRACTNAME'))
 ALTER TABLE T_IFM_BIZDEALBILL ADD (FCONTRACTNAME NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_BIZDEALBILL' AND KSQL_COL_NAME IN ('FLIMITCLAUSEEXPLAIN'))
 ALTER TABLE T_IFM_BIZDEALBILL ADD (FLIMITCLAUSEEXPLAIN NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_BIZDEALBILL' AND KSQL_COL_NAME IN ('FOTHEREXPLAIN'))
 ALTER TABLE T_IFM_BIZDEALBILL ADD (FOTHEREXPLAIN NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_BIZDEALBILL' AND KSQL_COL_NAME IN ('FDESCRIPTION'))
 ALTER TABLE T_IFM_BIZDEALBILL ADD (FDESCRIPTION NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_BIZDEALBILL' AND KSQL_COL_NAME IN ('FSUMMARY'))
 ALTER TABLE T_IFM_BIZDEALBILL ADD (FSUMMARY NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_BIZDEALBILL' AND KSQL_COL_NAME IN ('FDEALOPINION'))
 ALTER TABLE T_IFM_BIZDEALBILL ADD (FDEALOPINION NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_INNERACCT' AND KSQL_COL_NAME IN ('FCLOSEREASON'))
 ALTER TABLE T_IFM_INNERACCT ADD (FCLOSEREASON NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_INNERACCT' AND KSQL_COL_NAME IN ('FOPENREASON'))
 ALTER TABLE T_IFM_INNERACCT ADD (FOPENREASON NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_INNERACCTAPPLY' AND KSQL_COL_NAME IN ('FNAME'))
 ALTER TABLE T_IFM_INNERACCTAPPLY ADD (FNAME NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_PRODUCT' AND KSQL_COL_NAME IN ('FCOMMENT'))
 ALTER TABLE T_IFM_PRODUCT ADD (FCOMMENT NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_INTOBJECT' AND KSQL_COL_NAME IN ('FNAME'))
ALTER TABLE T_IFM_INTOBJECT ADD (FNAME NVARCHAR(80) DEFAULT ' ' NOT NULL );
/**End D:\PDM_UPGRADE\PDM\补充多语言文本字段\CFM_table.sql **/