Browse Source

bugfix for postgis detection

Maurits van der Schee 7 years ago
parent
commit
13d56e9d48
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      tests/PostgresqlTest.php

+ 1
- 0
tests/PostgresqlTest.php View File

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

Loading…
Cancel
Save