Skip to content

Commit

Permalink
Merge pull request #3502 from morozov/db2-get-portable-foreign-key-ru…
Browse files Browse the repository at this point in the history
…le-def

Removed DB2SchemaManager::_getPortableForeignKeyRuleDef()
  • Loading branch information
Majkl578 authored and morozov committed Apr 16, 2019
2 parents 07b9819 + c59ee29 commit 90286b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
4 changes: 4 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Upgrade to 3.0

## BC BREAK `DB2SchemaManager::_getPortableForeignKeyRuleDef()` removed

The method was used internally and is no longer needed.

## BC BREAK `AbstractPlatform::get*Expression()` methods no loner accept integer values as arguments

The following methods' arguments do not longer accept integer value:
Expand Down
16 changes: 0 additions & 16 deletions lib/Doctrine/DBAL/Schema/DB2SchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,22 +177,6 @@ protected function _getPortableTableForeignKeysList($tableForeignKeys)
return parent::_getPortableTableForeignKeysList($foreignKeys);
}

/**
* {@inheritdoc}
*/
protected function _getPortableForeignKeyRuleDef($def)
{
if ($def === 'C') {
return 'CASCADE';
}

if ($def === 'N') {
return 'SET NULL';
}

return null;
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 90286b5

Please sign in to comment.