/**Begin C:\PDM_UPGRADE\PDM1\MAL_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MAL_GOODS_STATUS' AND KSQL_COL_NAME IN ('FECSTATUS')) 
 ALTER TABLE T_MAL_GOODS_STATUS ADD (FECSTATUS CHAR(1) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MAL_GOODS' AND KSQL_COL_NAME IN ('FSTATUSINFOID')) 
 ALTER TABLE T_MAL_GOODS ADD (FSTATUSINFOID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MAL_GOODS' AND KSQL_COL_NAME IN ('FPRICEINFOID')) 
 ALTER TABLE T_MAL_GOODS ADD (FPRICEINFOID BIGINT DEFAULT 0 NOT NULL );

/**End C:\PDM_UPGRADE\PDM1\MAL_table.sql **/
