/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BOS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_INT_PUBLICHOLIDAY' AND KSQL_COL_NAME ='FCOUNTRYID') 
 ALTER TABLE T_INT_PUBLICHOLIDAY ADD (FCOUNTRYID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_INT_PUBLICHOLIDAY' AND KSQL_COL_NAME ='FHOLIDAYTYPE') 
 ALTER TABLE T_INT_PUBLICHOLIDAY ADD (FHOLIDAYTYPE VARCHAR(10) DEFAULT 'all_day' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_INT_PUBLICHOLIDAY' AND KSQL_COL_NAME ='FSTARTPERIOD') 
 ALTER TABLE T_INT_PUBLICHOLIDAY ADD (FSTARTPERIOD INT DEFAULT -1 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_INT_PUBLICHOLIDAY' AND KSQL_COL_NAME ='FENDPERIOD') 
 ALTER TABLE T_INT_PUBLICHOLIDAY ADD (FENDPERIOD INT DEFAULT -1 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_INT_WORKINGPLAN' AND KSQL_COL_NAME ='FCOUNTRYID') 
 ALTER TABLE T_INT_WORKINGPLAN ADD (FCOUNTRYID BIGINT DEFAULT 0 NOT NULL );

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