-- 生产版本增加 供货库存组织、供货仓库、供货仓位,配置号
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PDM_MANUVERSION' AND KSQL_COL_NAME ='fsupstockorgid') 
 ALTER TABLE T_PDM_MANUVERSION ADD (fsupstockorgid BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PDM_MANUVERSION' AND KSQL_COL_NAME ='fsupwarehouseid') 
 ALTER TABLE T_PDM_MANUVERSION ADD (fsupwarehouseid BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PDM_MANUVERSION' AND KSQL_COL_NAME ='fsuplocationid') 
 ALTER TABLE T_PDM_MANUVERSION ADD (fsuplocationid BIGINT DEFAULT 0 NOT NULL );
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PDM_MANUVERSION' AND KSQL_COL_NAME ='FCONFIGURECODEID') 
 ALTER TABLE T_PDM_MANUVERSION ADD (FCONFIGURECODEID BIGINT DEFAULT 0 NOT NULL );
