IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FMM_STANDARDTASKENTRY' AND KSQL_COL_NAME ='FWORKCARD')
 ALTER TABLE T_FMM_STANDARDTASKENTRY ADD ( FWORKCARD NVARCHAR(255) DEFAULT ' ' NOT NULL );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FMM_STANDARDTASKENTRY' AND KSQL_COL_NAME ='FCARDID')
 ALTER TABLE T_FMM_STANDARDTASKENTRY ADD ( FCARDID BIGINT DEFAULT 0 NOT NULL );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FMM_STANDARDTASKENTRY' AND KSQL_COL_NAME ='FCARDENTRYID')
 ALTER TABLE T_FMM_STANDARDTASKENTRY ADD ( FCARDENTRYID BIGINT DEFAULT 0 NOT NULL );
 
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FMM_PLANTYPE' AND KSQL_COL_NAME ='FSYS')
 ALTER TABLE T_FMM_PLANTYPE ADD ( FSYS CHAR(1) DEFAULT '0' NOT NULL );


