IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_CPS_SHORT_DETAIL' AND KSQL_COL_NAME ='FOPERATIONNO') 
ALTER TABLE T_MRP_CPS_SHORT_DETAIL ADD (FOPERATIONNO NVARCHAR(50) DEFAULT ' ' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_CPS_SHORT_DETAIL' AND KSQL_COL_NAME ='FOPERATIONDESC') 
ALTER TABLE T_MRP_CPS_SHORT_DETAIL ADD (FOPERATIONDESC NVARCHAR(50) DEFAULT ' ' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_CPS_SHORT_DETAIL' AND KSQL_COL_NAME ='FOPERATIONID') 
ALTER TABLE T_MRP_CPS_SHORT_DETAIL ADD (FOPERATIONID BIGINT DEFAULT 0 NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_CPS_DETAILENTRY' AND KSQL_COL_NAME ='FOPERATIONNO') 
ALTER TABLE T_MRP_CPS_DETAILENTRY ADD (FOPERATIONNO NVARCHAR(50) DEFAULT ' ' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_CPS_DETAILENTRY' AND KSQL_COL_NAME ='FOPERATIONDESC') 
ALTER TABLE T_MRP_CPS_DETAILENTRY ADD (FOPERATIONDESC NVARCHAR(50) DEFAULT ' ' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_CPS_DETAILENTRY' AND KSQL_COL_NAME ='FOPERATIONID') 
ALTER TABLE T_MRP_CPS_DETAILENTRY ADD (FOPERATIONID BIGINT DEFAULT 0 NOT NULL );