Skip to content

Commit

Permalink
Removed unsigned constraint for keys
Browse files Browse the repository at this point in the history
  • Loading branch information
forxer committed Jul 3, 2023
1 parent eea5b27 commit 3b7563a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
Changelog
=========

2.1.0 (2023-07-03)
2.2.0 (2023-07-03)
------------------

- Removed unsigned constraint for keys
- Prevent running migration if package is uninstalled


Expand Down
4 changes: 1 addition & 3 deletions src/Transformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,9 @@ private function extractSchemaInfos(): void
// GET UNSIGNED INTEGER COLUMNS NAMES AND INFOS

foreach ($table->getColumns() as $column) {
// keep only unsigned integer columns that are a key
// keep only integer columns that are a key
if (! $column->getType() instanceof IntegerType
|| ! $column->getUnsigned()
|| ! in_array($column->getName(), $tableKeysColumnsNames)) {

continue;
}

Expand Down

0 comments on commit 3b7563a

Please sign in to comment.