/**Begin C:\PDM_UPGRADE\PDM1\SRC_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_PROJECT_O' AND KSQL_COL_NAME IN ('FVIE_PURLIST')) 
 ALTER TABLE T_SRC_PROJECT_O ADD (FVIE_PURLIST CHAR(1) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_PROJECT_O' AND KSQL_COL_NAME IN ('FSUBMITTYPE')) 
 ALTER TABLE T_SRC_PROJECT_O ADD (FSUBMITTYPE CHAR(1) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_PROJECT_O' AND KSQL_COL_NAME IN ('FISDISCARDED')) 
 ALTER TABLE T_SRC_PROJECT_O ADD (FISDISCARDED CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_VIE_TURNS' AND KSQL_COL_NAME IN ('FVIE_PURLIST')) 
 ALTER TABLE T_SRC_VIE_TURNS ADD (FVIE_PURLIST CHAR(1) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_VIE_TURNS' AND KSQL_COL_NAME IN ('FSUBMITTYPE')) 
 ALTER TABLE T_SRC_VIE_TURNS ADD (FSUBMITTYPE CHAR(1) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_VIE_TURNS' AND KSQL_COL_NAME IN ('FISDISCARDED')) 
 ALTER TABLE T_SRC_VIE_TURNS ADD (FISDISCARDED CHAR(1) DEFAULT '0' NOT NULL );

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