IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_PMODELENTRY' AND KSQL_COL_NAME ='FELEMENTNAME') 
 ALTER TABLE T_MSPLAN_PMODELENTRY ADD (FELEMENTNAME NVARCHAR(50) DEFAULT ' ' NOT NULL);
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_PMODELENTRY' AND KSQL_COL_NAME ='FELEMENTTYPE') 
 ALTER TABLE T_MSPLAN_PMODELENTRY ADD (FELEMENTTYPE NVARCHAR(50) DEFAULT ' ' NOT NULL);
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_PMODELENTRY' AND KSQL_COL_NAME ='FELEMENTOBJECT') 
 ALTER TABLE T_MSPLAN_PMODELENTRY ADD (FELEMENTOBJECT BIGINT DEFAULT 0 NOT NULL);
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_PMODELENTRY' AND KSQL_COL_NAME ='FSORT') 
 ALTER TABLE T_MSPLAN_PMODELENTRY ADD (FSORT NVARCHAR(50) DEFAULT ' ' NOT NULL);