/**Begin D:\PDM_UPGRADE\PDM1\FA_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_APPLY_REPAIR_ENTRY' AND KSQL_COL_NAME IN ('FHEADUSEDEPTID'))
 ALTER TABLE T_FA_APPLY_REPAIR_ENTRY ADD (FHEADUSEDEPTID BIGINT DEFAULT 0 NOT NULL );

 --- drop column --------
 EXEC p_AlterColumn 'T_FA_APPLY_REPAIR', 'FREASON_TAG', 'NULL', 'NULL', '1001', 'NULL';

 --- drop column --------
 EXEC p_AlterColumn 'T_FA_APPLY_REPAIR', 'FINSTRUCTION_TAG', 'NULL', 'NULL', '1001', 'NULL';

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