Ver código fonte

bugfix for postgis detection

Maurits van der Schee 7 anos atrás
pai
commit
13d56e9d48
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1
    0
      tests/PostgresqlTest.php

+ 1
- 0
tests/PostgresqlTest.php Ver arquivo

@@ -95,6 +95,7 @@ class PostgresqlTest extends Tests
95 95
         if (!($capabilities & self::GIS)) {
96 96
             $contents = preg_replace('/(geometry) NOT NULL/i', 'text NOT NULL', $contents);
97 97
             $contents = preg_replace('/ST_GeomFromText/i', 'concat', $contents);
98
+            $contents = preg_replace('/CREATE EXTENSION IF NOT EXISTS postgis;/i', '', $contents);
98 99
         }
99 100
         if (!($capabilities & self::JSON)) {
100 101
             $contents = preg_replace('/JSONB? NOT NULL/i', 'text NOT NULL', $contents);

Carregando…
Cancelar
Salvar