Преглед на файлове

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…
Отказ
Запис