From 120284b2b273e46126c448366975d97a425237db Mon Sep 17 00:00:00 2001 From: Hafez Divandari Date: Wed, 24 Jan 2024 22:16:35 +0330 Subject: [PATCH 1/2] deprecated schema methods removal --- upgrade.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/upgrade.md b/upgrade.md index bc8d7b157c1..f654c4fcf54 100644 --- a/upgrade.md +++ b/upgrade.md @@ -177,6 +177,19 @@ The following list of Doctrine DBAL related classes and methods have been remove In addition, registering custom Doctrine types via `dbal.types` in your application's `database` configuration file is no longer required. + +#### Deprecated Schema Methods Removal + +**Likelihood Of Impact: Very Low** + +The deprecated `Schema::getAllTables()`, `Schema::getAllViews()`, and `Schema::getAllTypes()` methods have been removed in favor of new `Schema::getTables()`, `Schema::getViews()`, and `Schema::getTypes()` methods. + +None of the Schema methods on PostgreSQL will accept a 3-parts reference (e.g. `database.schema.table`) anymore and will throw an exception. Therefore, you may use `connection()` to declare the database instead: + +```php +Schema::connection('database')->hasTable('schema.table'); +``` + #### Schema Builder `getColumnType()` Method From 44370c4558e29421ae64977a006671c46111e390 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 25 Jan 2024 09:23:13 -0600 Subject: [PATCH 2/2] Update upgrade.md --- upgrade.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/upgrade.md b/upgrade.md index f654c4fcf54..bd88ba88ced 100644 --- a/upgrade.md +++ b/upgrade.md @@ -177,14 +177,14 @@ The following list of Doctrine DBAL related classes and methods have been remove In addition, registering custom Doctrine types via `dbal.types` in your application's `database` configuration file is no longer required. - -#### Deprecated Schema Methods Removal + +#### Deprecated Schema Methods **Likelihood Of Impact: Very Low** The deprecated `Schema::getAllTables()`, `Schema::getAllViews()`, and `Schema::getAllTypes()` methods have been removed in favor of new `Schema::getTables()`, `Schema::getViews()`, and `Schema::getTypes()` methods. -None of the Schema methods on PostgreSQL will accept a 3-parts reference (e.g. `database.schema.table`) anymore and will throw an exception. Therefore, you may use `connection()` to declare the database instead: +When using PostgreSQL, none of the new schema methods will accept a three-part reference (e.g. `database.schema.table`). Therefore, you should use `connection()` to declare the database instead: ```php Schema::connection('database')->hasTable('schema.table');