/**Begin C:\PDM_UPGRADE\PDM1\SRC_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_ENROLLSUPPLIER' AND KSQL_COL_NAME IN ('FRISKNUM')) 
 ALTER TABLE T_SRC_ENROLLSUPPLIER ADD (FRISKNUM INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_ENROLLSUPPLIER' AND KSQL_COL_NAME IN ('FRISKREMARK')) 
 ALTER TABLE T_SRC_ENROLLSUPPLIER ADD (FRISKREMARK NVARCHAR(510) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_INVITESUPPLIER' AND KSQL_COL_NAME IN ('FRISKNUM')) 
 ALTER TABLE T_SRC_INVITESUPPLIER ADD (FRISKNUM INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_INVITESUPPLIER' AND KSQL_COL_NAME IN ('FRISKREMARK')) 
 ALTER TABLE T_SRC_INVITESUPPLIER ADD (FRISKREMARK NVARCHAR(510) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_INVITESUPPLIER_TEMP' AND KSQL_COL_NAME IN ('FRISKNUM')) 
 ALTER TABLE T_SRC_INVITESUPPLIER_TEMP ADD (FRISKNUM INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_INVITESUPPLIER_TEMP' AND KSQL_COL_NAME IN ('FRISKREMARK')) 
 ALTER TABLE T_SRC_INVITESUPPLIER_TEMP ADD (FRISKREMARK NVARCHAR(510) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_OPENSCHEME' AND KSQL_COL_NAME IN ('FISAUTOENCRYPT')) 
 ALTER TABLE T_SRC_OPENSCHEME ADD (FISAUTOENCRYPT CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_OPENSCHEME' AND KSQL_COL_NAME IN ('FISSUPAUTOENCRYPT')) 
 ALTER TABLE T_SRC_OPENSCHEME ADD (FISSUPAUTOENCRYPT CHAR(1) DEFAULT '0' NOT NULL );

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