/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SRC_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_PROJECT_C' AND KSQL_COL_NAME ='FSUBMITTERID') 
 ALTER TABLE T_SRC_PROJECT_C ADD (FSUBMITTERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_PROJECT_C' AND KSQL_COL_NAME ='FSUBMITDATE') 
 ALTER TABLE T_SRC_PROJECT_C ADD (FSUBMITDATE DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_PROJECT_C' AND KSQL_COL_NAME ='FUNSUBMITTERID') 
 ALTER TABLE T_SRC_PROJECT_C ADD (FUNSUBMITTERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_PROJECT_C' AND KSQL_COL_NAME ='FUNSUBMITDATE') 
 ALTER TABLE T_SRC_PROJECT_C ADD (FUNSUBMITDATE DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_PROJECT_C' AND KSQL_COL_NAME ='FUNAUDITDATE') 
 ALTER TABLE T_SRC_PROJECT_C ADD (FUNAUDITDATE DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_PROJECT_C' AND KSQL_COL_NAME ='FUNAUDITORID') 
 ALTER TABLE T_SRC_PROJECT_C ADD (FUNAUDITORID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_PURLISTENTRY_F' AND KSQL_COL_NAME ='FORGID') 
 ALTER TABLE T_SRC_PURLISTENTRY_F ADD (FORGID BIGINT DEFAULT 0 NOT NULL );

/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SRC_table.sql **/
