/**
  * Method fired by the EventManager after a table has been created.
  * This will create a spatial index name $indexName on the $columName
  * using generic index structure (GIST).
  * 
  * For more information on GIST goto {@link http://revenant.ca/www/postgis/workshop/indexing.html}
  * 
  * @todo Consider using the SchemaCreateTableArgs object not a customer args object.
  * @param SchemaCreateSpatialTypeArgs $args
  */
 public function postSchemaCreateTable(SchemaCreateTableEventArgs $args)
 {
     $index = new Index($this->indexName, array($this->columnName));
     $args->addSql($args->getPlatform()->getCreateSpatialIndexSQL($index, $args->getTable()));
 }
 public function onSchemaCreateTable(SchemaCreateTableEventArgs $args)
 {
     $generator = new CreateTableSqlGenerator($args->getPlatform(), $this->schemaManager->isPostGis2());
     $args->addSql($generator->getSql($args->getTable(), $args->getColumns(), $args->getOptions()))->preventDefault();
 }