IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_METASQL_CHECKLOG' AND KSQL_COL_NAME ='FMETADATAKEY')
ALTER TABLE T_MSPLAN_METASQL_CHECKLOG ADD (FMETADATAKEY NVARCHAR(120) DEFAULT ' ' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_METASQL_CHECKLOG' AND KSQL_COL_NAME ='FTABLENAME')
ALTER TABLE T_MSPLAN_METASQL_CHECKLOG ADD (FTABLENAME NVARCHAR(120) DEFAULT ' ' NOT NULL );