-- 添加供应库存类型
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_BALINV_DETAILENTRY' AND KSQL_COL_NAME ='FSUPPLYSTORETYPE') 
 ALTER TABLE T_IM_BALINV_DETAILENTRY ADD (FSUPPLYSTORETYPE BIGINT DEFAULT 0 NOT NULL );
