Skip to content

Commit

Permalink
[11.x] Deprecated Schema Methods Removal (#9281)
Browse files Browse the repository at this point in the history
* deprecated schema methods removal

* Update upgrade.md

---------

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
hafezdivandari and taylorotwell authored Jan 25, 2024
1 parent 3e43a0e commit 66e84fe
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<a name="deprecated-schema-methods"></a>
#### 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.

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');
```

<a name="get-column-types"></a>
#### Schema Builder `getColumnType()` Method

Expand Down

0 comments on commit 66e84fe

Please sign in to comment.