Skip to content

Commit

Permalink
fix(database): ensure proper schema builder instantiation in LibSQLCo…
Browse files Browse the repository at this point in the history
…nnection
  • Loading branch information
darkterminal committed Jun 22, 2024
1 parent 704659e commit 66c13c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Database/LibSQLConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class LibSQLConnection extends Connection
{
protected LibSQLDatabase $db;
public LibSQLDatabase $db;

public function __construct(LibSQLDatabase $db, string $database = ':memory:', string $tablePrefix = '', array $config = [])
{
Expand Down Expand Up @@ -80,7 +80,7 @@ public function getSchemaBuilder(): LibSQLSchemaBuilder
$this->useDefaultSchemaGrammar();
}

return new LibSQLSchemaBuilder($this);
return new LibSQLSchemaBuilder($this->db, $this);
}

public function getSchemaState(?Filesystem $files = null, ?callable $processFactory = null): LibSQLSchemaState
Expand Down

0 comments on commit 66c13c9

Please sign in to comment.