Skip to content

Commit 5dcd4b9

Browse files
committed
fix: laravel 12.x types
1 parent a31dd3d commit 5dcd4b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Database/LibsqlSchemaGrammar.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function compileDropAllIndexes(): string
1313
return "SELECT 'DROP INDEX IF EXISTS \"' || name || '\";' FROM sqlite_schema WHERE type = 'index' AND name NOT LIKE 'sqlite_%'";
1414
}
1515

16-
public function compileDropAllTables(): string
16+
public function compileDropAllTables(string|null $schema = null): string
1717
{
1818
return "SELECT 'DROP TABLE IF EXISTS \"' || name || '\";' FROM sqlite_schema WHERE type = 'table' AND name NOT LIKE 'sqlite_%'";
1919
}
@@ -23,7 +23,7 @@ public function compileDropAllTriggers(): string
2323
return "SELECT 'DROP TRIGGER IF EXISTS \"' || name || '\";' FROM sqlite_schema WHERE type = 'trigger' AND name NOT LIKE 'sqlite_%'";
2424
}
2525

26-
public function compileDropAllViews(): string
26+
public function compileDropAllViews(string|null $schema = null): string
2727
{
2828
return "SELECT 'DROP VIEW IF EXISTS \"' || name || '\";' FROM sqlite_schema WHERE type = 'view'";
2929
}

0 commit comments

Comments
 (0)