isPostGis2() public method

public isPostGis2 ( )
 public function onSchemaAlterTableRenameColumn(SchemaAlterTableRenameColumnEventArgs $args)
 {
     $column = $args->getColumn();
     if (!$this->isSpatialColumnType($column)) {
         return;
     }
     if ($this->schemaManager->isPostGis2()) {
         return;
     }
     throw new \RuntimeException('Spatial columns cannot be renamed (Requested renaming column "' . $args->getOldColumnName() . '" to "' . $column->getName() . '" in table "' . $args->getTableDiff()->name . '")');
 }
Exemplo n.º 2
0
 /**
  * @group postgis-2.x
  */
 public function testIsPostGis2OnPostGIS2x()
 {
     $schemaManager = new SchemaManager($this->_getConnection());
     $this->assertTrue($schemaManager->isPostGis2());
 }