/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\kd_1.5.140_mrp_table_addauxpty.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_PUR_FCTENTRY' AND KSQL_COL_NAME ='FAUXPTY')
 ALTER TABLE T_MRP_PUR_FCTENTRY ADD (FAUXPTY BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_GROSSDEMAND_SOURCE' AND KSQL_COL_NAME ='FAUXPROPERTY') 
 ALTER TABLE T_MRP_GROSSDEMAND_SOURCE ADD (FAUXPROPERTY BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_GROSSDEMAND_SOURCE' AND KSQL_COL_NAME ='FPAUXPROPERTY') 
 ALTER TABLE T_MRP_GROSSDEMAND_SOURCE ADD (FPAUXPROPERTY BIGINT DEFAULT 0 NOT NULL );

/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\kd_1.5.140_mrp_table_addauxpty.sql **/
