Skip to content

Commit

Permalink
Prevent errors in the presence of enum type columns (close #2)
Browse files Browse the repository at this point in the history
  • Loading branch information
forxer committed Jul 3, 2023
1 parent 3b7563a commit 91827bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
Changelog
=========

2.2.0 (2023-07-03)
2.1.1 (2023-07-03)
------------------

- Removed unsigned constraint for keys
- Prevent running migration if package is uninstalled
- Removed unsigned constraint for keys
- Prevent errors in the presence of enum type columns (close #2)


2.1.0 (2023-04-12)
Expand Down
3 changes: 3 additions & 0 deletions src/Transformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public function __construct(Connection $connection)
$this->connection = $connection;
$this->doctrineSchemaManager = $connection->getDoctrineSchemaManager();
$this->schemaBuilder = $connection->getSchemaBuilder();

// Prevention of errors in the presence of enum type columns
$this->connection->getDoctrineConnection()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
}

/**
Expand Down

0 comments on commit 91827bc

Please sign in to comment.