From 3aa0227ec11658508916f7612bf8a1c2dfa89933 Mon Sep 17 00:00:00 2001 From: Sergei Morozov Date: Wed, 22 Sep 2021 12:43:27 -0700 Subject: [PATCH] Fix Schema::getTableNames() --- src/Schema/SqliteSchemaManager.php | 9 +++++++++ tests/Functional/Schema/SchemaTest.php | 17 +++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 tests/Functional/Schema/SchemaTest.php diff --git a/src/Schema/SqliteSchemaManager.php b/src/Schema/SqliteSchemaManager.php index 6d678247db2..140ebb3c0de 100644 --- a/src/Schema/SqliteSchemaManager.php +++ b/src/Schema/SqliteSchemaManager.php @@ -568,4 +568,13 @@ public function listTableDetails($name): Table return $table; } + + /** + * {@inheritDoc} + */ + public function getSchemaSearchPaths() + { + // SQLite does not support schemas or databases + return []; + } } diff --git a/tests/Functional/Schema/SchemaTest.php b/tests/Functional/Schema/SchemaTest.php new file mode 100644 index 00000000000..c4241268f45 --- /dev/null +++ b/tests/Functional/Schema/SchemaTest.php @@ -0,0 +1,17 @@ +connection->createSchemaManager()->createSchemaConfig()); + self::assertNotEmpty($schema->getName()); + } +}