/**Begin D:\PDM_UPGRADE\PDM1\MRP_table.sql **/

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_XPLANORDER' AND KSQL_COL_NAME ='FCHANGSUPPLIER') 
 ALTER TABLE T_MRP_XPLANORDER ADD (FCHANGSUPPLIER BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_XPLANORDERLOGENTRY' AND KSQL_COL_NAME ='FCHANGSUPPLIER') 
 ALTER TABLE T_MRP_XPLANORDERLOGENTRY ADD (FCHANGSUPPLIER NVARCHAR(255) DEFAULT ' ' NOT NULL);
/**End D:\PDM_UPGRADE\PDM1\MRP_table.sql **/
