Skip to content

Commit 66e84fe

Browse files
[11.x] Deprecated Schema Methods Removal (#9281)
* deprecated schema methods removal * Update upgrade.md --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent 3e43a0e commit 66e84fe

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

upgrade.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,19 @@ The following list of Doctrine DBAL related classes and methods have been remove
177177

178178
In addition, registering custom Doctrine types via `dbal.types` in your application's `database` configuration file is no longer required.
179179

180+
<a name="deprecated-schema-methods"></a>
181+
#### Deprecated Schema Methods
182+
183+
**Likelihood Of Impact: Very Low**
184+
185+
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.
186+
187+
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:
188+
189+
```php
190+
Schema::connection('database')->hasTable('schema.table');
191+
```
192+
180193
<a name="get-column-types"></a>
181194
#### Schema Builder `getColumnType()` Method
182195

0 commit comments

Comments
 (0)