IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE
	TABLE_NAME = 'publ_PurchaseOrders' AND
	COLUMN_NAME = 'supplierLegalEntity')
BEGIN
	exec sp_rename 'publ_PurchaseOrders.supplierLegalEntity', 'supplierTradingName' , 'COLUMN';
END
