/**Begin MDL_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_META_APPRUNTIME' AND KSQL_COL_NAME ='FVISIBLE')
 ALTER TABLE T_META_APPRUNTIME ADD (FVISIBLE VARCHAR(5) DEFAULT '1' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_META_APPRUNTIME' AND KSQL_COL_NAME ='FDEPLOYSTATUS')
 ALTER TABLE T_META_APPRUNTIME ADD (FDEPLOYSTATUS VARCHAR(5) DEFAULT '2' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_META_MAINENTITYINFO' AND KSQL_COL_NAME ='FAPPID')
 ALTER TABLE T_META_MAINENTITYINFO ADD (FAPPID VARCHAR(50) DEFAULT ' ' NOT NULL );

/**End MDL_table.sql **/
