Skip to content

Commit

Permalink
Deprecate schema methods related to explicit foreign key indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
morozov committed Sep 28, 2021
1 parent 09929a3 commit 649cca4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
8 changes: 8 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ awareness about deprecated code.

# Upgrade to 3.2

## Deprecated schema methods related to explicit foreign key indexes.

The following methods have been deprecated:

- `Schema::hasExplicitForeignKeyIndexes()`,
- `SchemaConfig::hasExplicitForeignKeyIndexes()`,
- `SchemaConfig::setExplicitForeignKeyIndexes()`.

## Deprecated `Schema::getTableNames()`.

The `Schema::getTableNames()` method has been deprecated. In order to obtain schema table names,
Expand Down
2 changes: 2 additions & 0 deletions src/Schema/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ public function __construct(
}

/**
* @deprecated
*
* @return bool
*/
public function hasExplicitForeignKeyIndexes()
Expand Down
10 changes: 9 additions & 1 deletion src/Schema/SchemaConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
*/
class SchemaConfig
{
/** @var bool */
/**
* @deprecated
*
* @var bool
*/
protected $hasExplicitForeignKeyIndexes = false;

/** @var int */
Expand All @@ -20,6 +24,8 @@ class SchemaConfig
protected $defaultTableOptions = [];

/**
* @deprecated
*
* @return bool
*/
public function hasExplicitForeignKeyIndexes()
Expand All @@ -28,6 +34,8 @@ public function hasExplicitForeignKeyIndexes()
}

/**
* @deprecated
*
* @param bool $flag
*
* @return void
Expand Down

0 comments on commit 649cca4

Please sign in to comment.