--排程方案固定能力项分录增加能力编码字段，计算能力项子分录增加计算公式字段
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_PLSFCSUBENTRY' AND KSQL_COL_NAME ='FABILITYNUMBER') 
 ALTER TABLE T_MRP_PLSFCSUBENTRY ADD (FABILITYNUMBER NVARCHAR(50) DEFAULT ' ' NOT NULL );

 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_PLSCRSUBENTRY' AND KSQL_COL_NAME ='FCAPACITYCALEN') 
 ALTER TABLE T_MRP_PLSCRSUBENTRY ADD (FCAPACITYCALEN NVARCHAR(255) DEFAULT ' ' NOT NULL );