/**Begin C:\PDM_UPGRADE\PDM1\SRC_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_ASSESSCONFIG' AND KSQL_COL_NAME IN ('FAGENTID')) 
 ALTER TABLE T_SRC_ASSESSCONFIG ADD (FAGENTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_SCOREDETAIL' AND KSQL_COL_NAME IN ('FAGENTID')) 
 ALTER TABLE T_SRC_SCOREDETAIL ADD (FAGENTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_MATERIALEND' AND KSQL_COL_NAME IN ('FSCHEMEID')) 
 ALTER TABLE T_SRC_MATERIALEND ADD (FSCHEMEID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_APTITUDECONFIG' AND KSQL_COL_NAME IN ('FAGENTID')) 
 ALTER TABLE T_SRC_APTITUDECONFIG ADD (FAGENTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_APTITUDECONFIG2' AND KSQL_COL_NAME IN ('FAGENTID')) 
 ALTER TABLE T_SRC_APTITUDECONFIG2 ADD (FAGENTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_SCORESUGGESTION' AND KSQL_COL_NAME IN ('FAGENTID')) 
 ALTER TABLE T_SRC_SCORESUGGESTION ADD (FAGENTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_RETENDER' AND KSQL_COL_NAME IN ('FISRETURNBID')) 
 ALTER TABLE T_SRC_RETENDER ADD (FISRETURNBID CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_EVALUATECONFIG' AND KSQL_COL_NAME IN ('FAGENTID')) 
 ALTER TABLE T_SRC_EVALUATECONFIG ADD (FAGENTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_EVALUATEOPINION' AND KSQL_COL_NAME IN ('FAGENTID')) 
 ALTER TABLE T_SRC_EVALUATEOPINION ADD (FAGENTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_EVALUATEDETAIL' AND KSQL_COL_NAME IN ('FAGENTID')) 
 ALTER TABLE T_SRC_EVALUATEDETAIL ADD (FAGENTID BIGINT DEFAULT 0 NOT NULL );

/**End C:\PDM_UPGRADE\PDM1\SRC_table.sql **/
