Skip to content

Commit 13d56e9

Browse files
committed
bugfix for postgis detection
1 parent dff574a commit 13d56e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/PostgresqlTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ public function seedDatabase($db, $capabilities)
9595
if (!($capabilities & self::GIS)) {
9696
$contents = preg_replace('/(geometry) NOT NULL/i', 'text NOT NULL', $contents);
9797
$contents = preg_replace('/ST_GeomFromText/i', 'concat', $contents);
98+
$contents = preg_replace('/CREATE EXTENSION IF NOT EXISTS postgis;/i', '', $contents);
9899
}
99100
if (!($capabilities & self::JSON)) {
100101
$contents = preg_replace('/JSONB? NOT NULL/i', 'text NOT NULL', $contents);

0 commit comments

Comments
 (0)