Skip to content

Commit

Permalink
Use DBAL api to perform uuid migration
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Mar 6, 2022
1 parent 1ea0563 commit bfaaa4b
Show file tree
Hide file tree
Showing 8 changed files with 392 additions and 85 deletions.
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"require": {
"php": "^8.0",
"doctrine/common": "^2.12 || ^3.0",
"doctrine/dbal": "^2.6 || ^3.0",
"doctrine/dbal": "^3.2",
"doctrine/event-manager": "^1.0",
"doctrine/orm": "^2.10",
"doctrine/persistence": "^1.3 || ^2.0",
Expand Down Expand Up @@ -74,6 +74,9 @@
}
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
},
"sort-packages": true
}
}
5 changes: 5 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,8 @@ parameters:
count: 1
path: tests/Fixtures/DemoEntityManager.php

-
message: "#^Call to function method_exists\\(\\) with Doctrine\\\\DBAL\\\\Connection and 'createSchemaManager' will always evaluate to true\\.$#"
count: 1
path: tests/Migration/IdToUuidMigrationTest.php

3 changes: 3 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
</include>
</coverage>
<php>
<env name="APP_DEBUG" value="false"/>
<env name="APP_ENV" value="test"/>
<env name="KERNEL_CLASS" value="Nucleos\Doctrine\Tests\Bridge\Symfony\App\AppKernel"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0"/>
</php>
<testsuites>
Expand Down
Loading

0 comments on commit bfaaa4b

Please sign in to comment.