jawira / db-draw

📐 PHP library to generate DB diagrams
https://jawira.github.io/db-draw/
MIT License
18 stars 2 forks source link

does it work for doctrine/dbal version 3.1.x? #26

Closed S-Tian86 closed 1 year ago

S-Tian86 commented 2 years ago

When I try to install I have the following error:

jawira/db-draw[v1.2.0, ..., v1.2.3] require doctrine/dbal ^2.5 -> found doctrine/dbal[v2.5.0, ..., 2.13.5] 
but the package is fixed to 3.1.4 (lock file version) by a partial update and that version does not match. 
Make sure you list it as an argument for the update command.

thx.

tourze commented 2 years ago

Same problem.

vladdnepr commented 1 year ago

Hi. Can you add support of doctrine dbal 3?

jawira commented 1 year ago

Hello, I completely missed this thread, I will add compatibility with dbal 3 this month :)

myselfhimself commented 1 year ago

Same problem, install of jawira/doctrine-diagram-bundle will fail because of that low-version dbal requirement:

$ composer require jawira/doctrine-diagram-bundle
Xdebug: [Step Debug] Could not connect to debugging client. Tried: 127.0.0.1:9003 (through xdebug.client_host/xdebug.client_port) :-(
Info from https://repo.packagist.org: #StandWithUkraine
Using version ^0.2.0 for jawira/doctrine-diagram-bundle
./composer.json has been updated
Running composer update jawira/doctrine-diagram-bundle
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - jawira/db-draw[v1.2.0, ..., v1.2.3] require doctrine/dbal ^2.5 -> found doctrine/dbal[v2.5.0, ..., 2.13.9] but the package is fixed to 3.4.5 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - jawira/doctrine-diagram-bundle v0.2.0 requires jawira/db-draw ^1.2 -> satisfiable by jawira/db-draw[v1.2.0, v1.2.1, v1.2.2, v1.2.3].
    - Root composer.json requires jawira/doctrine-diagram-bundle ^0.2.0 -> satisfiable by jawira/doctrine-diagram-bundle[v0.2.0].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require jawira/doctrine-diagram-bundle:*" to figure out if any version is installable, or "composer require jawira/doctrine-diagram-bundle:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
jawira commented 1 year ago

@myselfhimself So this was like a pet project for me, I wasn't expecting complaints ;) give me some days, I will fix it this month :pray:

jawira commented 1 year ago

https://github.com/jawira/db-draw/pull/28 Done!

myselfhimself commented 1 year ago

Very big thanks for this, we now use your doctrine schema drawing tool to enrich our documentation from time to time! Clever "pet project" ;) !