/**BEGIN  **/

 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_JUDGECONDITION' AND KSQL_COL_NAME ='FREFPARAMDIMNUMS') 
 ALTER TABLE T_EB_JUDGECONDITION ADD (FREFPARAMDIMNUMS NVARCHAR(500) DEFAULT ' ' NOT NULL);
 
  IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_JUDGECONDITION' AND KSQL_COL_NAME ='FREFFUNCTIONDIMNUMS') 
 ALTER TABLE T_EB_JUDGECONDITION ADD (FREFFUNCTIONDIMNUMS NVARCHAR(500) DEFAULT ' ' NOT NULL);
 
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_JUDGECONDITION_FUNCDIM')
CREATE INDEX IDX_EB_JUDGECONDITION_FUNCDIM ON T_EB_JUDGECONDITION (
   FMODELID ASC,
   FBIZMODELID ASC,
   FREFFUNCTIONDIMNUMS ASC
);
 
/**END **/