Skip to content

Commit d8adbbb

Browse files
[11.x] Inspecting database (#9317)
* inspecting databases * Update upgrade.md --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent a945883 commit d8adbbb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

upgrade.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,16 @@ The following list of Doctrine DBAL related classes and methods have been remove
187187

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

190+
If you were previously using Doctrine DBAL to inspect your database and its associated tables, you may use Laravel's new native schema methods (`Schema::getTables()`, `Schema::getColumns()`, `Schema::getIndexes()`, `Schema::getForeignKeys()`, etc.) instead.
191+
190192
<a name="deprecated-schema-methods"></a>
191193
#### Deprecated Schema Methods
192194

193195
**Likelihood Of Impact: Very Low**
194196

195-
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.
197+
The deprecated, Doctrine based `Schema::getAllTables()`, `Schema::getAllViews()`, and `Schema::getAllTypes()` methods have been removed in favor of new Laravel native `Schema::getTables()`, `Schema::getViews()`, and `Schema::getTypes()` methods.
196198

197-
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:
199+
When using PostgreSQL and SQL Server, 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:
198200

199201
```php
200202
Schema::connection('database')->hasTable('schema.table');

0 commit comments

Comments
 (0)