/**Begin C:\PDM_UPGRADE\PDM1\SRC_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_APPLYENTRY' AND KSQL_COL_NAME IN ('FAPPLICANTID')) 
 ALTER TABLE T_SRC_APPLYENTRY ADD (FAPPLICANTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_APPLYENTRY' AND KSQL_COL_NAME IN ('FAPPLICATIONDEPTID')) 
 ALTER TABLE T_SRC_APPLYENTRY ADD (FAPPLICATIONDEPTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_APPLYENTRY' AND KSQL_COL_NAME IN ('FAPPLICATIONDATE')) 
 ALTER TABLE T_SRC_APPLYENTRY ADD (FAPPLICATIONDATE DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_PURLISTENTRY' AND KSQL_COL_NAME IN ('FAPPLICANTID')) 
 ALTER TABLE T_SRC_PURLISTENTRY ADD (FAPPLICANTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_PURLISTENTRY' AND KSQL_COL_NAME IN ('FAPPLICATIONDEPTID')) 
 ALTER TABLE T_SRC_PURLISTENTRY ADD (FAPPLICATIONDEPTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_PURLISTENTRY' AND KSQL_COL_NAME IN ('FAPPLICATIONDATE')) 
 ALTER TABLE T_SRC_PURLISTENTRY ADD (FAPPLICATIONDATE DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_VIE_DETAIL' AND KSQL_COL_NAME IN ('FAPPLICANTID')) 
 ALTER TABLE T_SRC_VIE_DETAIL ADD (FAPPLICANTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_VIE_DETAIL' AND KSQL_COL_NAME IN ('FAPPLICATIONDEPTID')) 
 ALTER TABLE T_SRC_VIE_DETAIL ADD (FAPPLICATIONDEPTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_VIE_DETAIL' AND KSQL_COL_NAME IN ('FAPPLICATIONDATE')) 
 ALTER TABLE T_SRC_VIE_DETAIL ADD (FAPPLICATIONDATE DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_NOTYEARINFO' AND KSQL_COL_NAME IN ('FAPPLICANTID')) 
 ALTER TABLE T_SRC_NOTYEARINFO ADD (FAPPLICANTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_NOTYEARINFO' AND KSQL_COL_NAME IN ('FAPPLICATIONDEPTID')) 
 ALTER TABLE T_SRC_NOTYEARINFO ADD (FAPPLICATIONDEPTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_NOTYEARINFO' AND KSQL_COL_NAME IN ('FAPPLICATIONDATE')) 
 ALTER TABLE T_SRC_NOTYEARINFO ADD (FAPPLICATIONDATE DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_CONTRACTENTRY_A' AND KSQL_COL_NAME IN ('FAPPLICANTID')) 
 ALTER TABLE T_SRC_CONTRACTENTRY_A ADD (FAPPLICANTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_CONTRACTENTRY_A' AND KSQL_COL_NAME IN ('FAPPLICATIONDEPTID')) 
 ALTER TABLE T_SRC_CONTRACTENTRY_A ADD (FAPPLICATIONDEPTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_CONTRACTENTRY_A' AND KSQL_COL_NAME IN ('FAPPLICATIONDATE')) 
 ALTER TABLE T_SRC_CONTRACTENTRY_A ADD (FAPPLICATIONDATE DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_TENDENCY' AND KSQL_COL_NAME IN ('FAPPLICANTID')) 
 ALTER TABLE T_SRC_TENDENCY ADD (FAPPLICANTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_TENDENCY' AND KSQL_COL_NAME IN ('FAPPLICATIONDEPTID')) 
 ALTER TABLE T_SRC_TENDENCY ADD (FAPPLICATIONDEPTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_TENDENCY' AND KSQL_COL_NAME IN ('FAPPLICATIONDATE')) 
 ALTER TABLE T_SRC_TENDENCY ADD (FAPPLICATIONDATE DATETIME );

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