We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb75a38 commit b58f4edCopy full SHA for b58f4ed
tests/SqliteTest.php
@@ -54,7 +54,6 @@ public function checkVersion($db)
54
public function getCapabilities($db)
55
{
56
$capabilities = 0;
57
- $capabilities |= self::JSON;
58
return $capabilities;
59
}
60
@@ -68,6 +67,13 @@ public function seedDatabase($db, $capabilities)
68
67
$fixture = __DIR__.'/data/blog_sqlite.sql';
69
$contents = file_get_contents($fixture);
70
+ if (!($capabilities & self::GIS)) {
71
+ $contents = preg_replace('/GEOMETRY NOT NULL/i','text NOT NULL',$contents);
72
+ }
73
+ if (!($capabilities & self::JSON)) {
74
+ $contents = preg_replace('/JSON NOT NULL/i','text NOT NULL',$contents);
75
76
+
77
$queries = preg_split('/;\s*\n/', $contents);
78
array_pop($queries);
79
0 commit comments