/**Begin C:\PDM_UPGRADE\PDM1\SRC_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_PROJECT_F' AND KSQL_COL_NAME IN ('FPURLISTNOTE')) 
 ALTER TABLE T_SRC_PROJECT_F ADD (FPURLISTNOTE NVARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_ENROLLSUPPLIER' AND KSQL_COL_NAME IN ('FPURLISTNOTE')) 
 ALTER TABLE T_SRC_ENROLLSUPPLIER ADD (FPURLISTNOTE NVARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_INVITESUPPLIER' AND KSQL_COL_NAME IN ('FPURLISTNOTE')) 
 ALTER TABLE T_SRC_INVITESUPPLIER ADD (FPURLISTNOTE NVARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_INVITESUPPLIER_TEMP' AND KSQL_COL_NAME IN ('FPURLISTNOTE')) 
 ALTER TABLE T_SRC_INVITESUPPLIER_TEMP ADD (FPURLISTNOTE NVARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_SUPPLIERPICK' AND KSQL_COL_NAME IN ('FSUMVALUE')) 
 ALTER TABLE T_SRC_SUPPLIERPICK ADD (FSUMVALUE DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_SUPPLIERPICK' AND KSQL_COL_NAME IN ('FISBYPURLIST')) 
 ALTER TABLE T_SRC_SUPPLIERPICK ADD (FISBYPURLIST CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_SUPPLIERPICKENTRY' AND KSQL_COL_NAME IN ('FPERCENT')) 
 ALTER TABLE T_SRC_SUPPLIERPICKENTRY ADD (FPERCENT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_SRC_INVITESUPPLIERSCOPE') 
 CREATE TABLE T_SRC_INVITESUPPLIERSCOPE (
FPKID BIGINT DEFAULT 0 NOT NULL,
FENTRYID BIGINT DEFAULT 0 NOT NULL,
FBASEDATAID BIGINT DEFAULT 0 NOT NULL
);


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