Переглянути джерело

bugfix for postgis detection

Maurits van der Schee 7 роки тому
джерело
коміт
13d56e9d48
1 змінених файлів з 1 додано та 0 видалено
  1. 1
    0
      tests/PostgresqlTest.php

+ 1
- 0
tests/PostgresqlTest.php Переглянути файл

@@ -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);

Loading…
Відмінити
Зберегти