/**Begin D:\software-java\PDM_UPGRADE\pdm1\BOS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_LIC_LICENSEGROUPAPPS' AND KSQL_COL_NAME IN ('FMODULEBEGINDATE')) 
 ALTER TABLE T_LIC_LICENSEGROUPAPPS ADD (FMODULEBEGINDATE DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_LIC_LICENSEGROUPAPPS' AND KSQL_COL_NAME IN ('FMODULEENDDATE')) 
 ALTER TABLE T_LIC_LICENSEGROUPAPPS ADD (FMODULEENDDATE DATETIME );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_LIC_LICGROUPAPPS_TRIAL' AND KSQL_COL_NAME IN ('FMODULEBEGINDATE'))
 ALTER TABLE T_LIC_LICGROUPAPPS_TRIAL ADD (FMODULEBEGINDATE DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_LIC_LICGROUPAPPS_TRIAL' AND KSQL_COL_NAME IN ('FMODULEENDDATE'))
 ALTER TABLE T_LIC_LICGROUPAPPS_TRIAL ADD (FMODULEENDDATE DATETIME );
