<?php 

class OSMPointOfInterestExtension extends DataExtension {
	private static $db = array(
		// No Big Int support yet so use big decimal
		'OpenStreetMapID' => 'Decimal(20,0)'
	);

	// given millions of possible POIs an index is handy
	private static $indexes = array(
        'OpenStreetMapID' => true
    );
}


<?php 

class OSMPointOfInterestExtension extends DataExtension {
	private static $db = array(
		// No Big Int support yet so use big decimal
		'OpenStreetMapID' => 'Decimal(20,0)'
	);

	// given millions of possible POIs an index is handy
	private static $indexes = array(
        'OpenStreetMapID' => true
    );


	/* The openstreetmap id is only for scripting purposes */
    public function updateCMSFields( FieldList $fields ) {
	    $osmid = $fields->removeByName('OpenStreetMapID');
	}
}
Hide openstreetmap id, only required for scripting
FIX: Hide openstreetmap id, only required for scripting
