/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\MSPLAN_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_DATACONFIG' AND KSQL_COL_NAME ='FCLASSPATH') 
 ALTER TABLE T_MSPLAN_DATACONFIG ADD (FCLASSPATH NVARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_DATACONFIG' AND KSQL_COL_NAME ='FAPPID') 
 ALTER TABLE T_MSPLAN_DATACONFIG ADD (FAPPID NVARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_DATACONFIG' AND KSQL_COL_NAME ='FSERVICENAME') 
 ALTER TABLE T_MSPLAN_DATACONFIG ADD (FSERVICENAME NVARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_DATACONFIG' AND KSQL_COL_NAME ='FMETHODNAME') 
 ALTER TABLE T_MSPLAN_DATACONFIG ADD (FMETHODNAME NVARCHAR(50) DEFAULT ' ' NOT NULL );

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