/*暂估单加分录及单头字段*/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_COSTESTIMATEBILL' AND KSQL_COL_NAME ='FISPUSH')
ALTER TABLE T_ER_COSTESTIMATEBILL ADD (FISPUSH CHAR(1) DEFAULT '0' NOT NULL);

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_COSTESTIMATEBILL' AND KSQL_COL_NAME ='FRAMEWORKCONTRACT')
ALTER TABLE T_ER_COSTESTIMATEBILL ADD (FRAMEWORKCONTRACT CHAR(1) DEFAULT '1' NOT NULL);

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_COSTESTIMATEBILL' AND KSQL_COL_NAME ='FRELATIONCONTRACT')
ALTER TABLE T_ER_COSTESTIMATEBILL ADD (FRELATIONCONTRACT CHAR(1) DEFAULT '0' NOT NULL);

