Skip to content

Commit

Permalink
make "NO ACTION" as constraint action possible (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrant88 authored Mar 5, 2023
1 parent c1f8d80 commit 483b83a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/diff_file.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ private function addEnsureForeignKey(rex_sql_foreign_key $foreignKey): string
/** @var array<rex_sql_foreign_key::*, string> $modes */
static $modes = [
rex_sql_foreign_key::RESTRICT => 'rex_sql_foreign_key::RESTRICT',
/* rex_sql_foreign_key::NO_ACTION */ 'NO ACTION' => "'NO ACTION'",
rex_sql_foreign_key::CASCADE => 'rex_sql_foreign_key::CASCADE',
rex_sql_foreign_key::SET_NULL => 'rex_sql_foreign_key::SET_NULL',
];
Expand Down

0 comments on commit 483b83a

Please sign in to comment.