Comments (13)
since this was integrated in migrations, I think you should stick to dev-master
...anything we can help with?
from doctrinemigrationsbundle.
We should register the command only when the LatestCommand command is available. You can look at DoctrineBundle or DoctrinePHPCRBundle for such cases
from doctrinemigrationsbundle.
It is on dev-master although it broke when composer updated to bf9bcb3. Seems like I can get it working by adding "doctrine/migrations": "1.0.x-dev", to my composer file. I think the requirement should be updated to a version of doctrine/migrations which has the LatestCommand file or Stof's suggestion.
from doctrinemigrationsbundle.
@github-scott if you don't allow dev versions of doctrine/migrations
in your project, there is strictly no change to get the latest dev version of the library, even if we change the requirement (you may get a "package not found" error)
from doctrinemigrationsbundle.
The same here. Because the bundle require "doctrine/migrations": "~1.0@dev"
, composer installs v1.0-ALPHA1
of doctrine/migrations, which is missing the LatestCommand
from doctrinemigrationsbundle.
do you have prefer-stable: true
somewhere in your composer config ?
from doctrinemigrationsbundle.
I have "minimum-stability": "alpha" in the composer file so I assume this is causing the problem for me.
from doctrinemigrationsbundle.
well, as I said, you have to whitelist the dev version of doctrine/migrations for now.
from doctrinemigrationsbundle.
I've
"minimum-stability": "dev",
"prefer-stable": true,
Indeed adding "doctrine/migrations": "dev-master",
explicitly works. However, it worked before without it. I don't know what should be the correct behaviour, but it's kinda strange a working composer config to brake at some point without changes.
from doctrinemigrationsbundle.
Well, the culprit is indeed "prefer-stable": true
, as it will prefer the old alpha instead of the dev version.
The bundle should indeed be fixed (which is why the issue is not closed) but I wanted to understand why you got an old version
from doctrinemigrationsbundle.
Me also got an old version, same issue.
from doctrinemigrationsbundle.
Closing as it's old and probably fixed by that commit 0a3c377
from doctrinemigrationsbundle.
I can confirm that below config works:
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"doctrine/doctrine-migrations-bundle": "1.*",
}
from doctrinemigrationsbundle.
Related Issues (20)
- The metadata storage is not up to date (because of platformOptions?) HOT 2
- Doctrine Migration Bundle runs its own checks for the Messenger component? HOT 3
- make:migration dont create AUTO_INCREMENT on some entity
- Wrong migration for columnDefinition for DATETIME
- One-To-One Self-referencing is being ignored for PostgreSQL HOT 3
- generate idempotent sql migration script
- Generated columns added to migrations file every time - any way to tell the migration to ignore single fields? HOT 2
- Migrations regenerates DROP CONSTRAINT and ADD the same CONSTRAINT HOT 2
- Symfony deprecation HOT 2
- Add option --mapping on migrations:diff
- Wrong SQL generated for MySQL when using TEXT type with unique index
- `TableMetadataStorage->complete` generates invalid SQL for Oracle when applying a new migration HOT 1
- Doctrine migrations generates DROP CONSTRAINT twice
- option --em does nothing for me HOT 1
- Migrations run out of chronological order if you have multiple namespaces defined
- Support Symfony 7 HOT 1
- `mapping_types` config seems to be ignored on `diff` HOT 1
- Migration dependency injection in Symfony 7.0 HOT 7
- compatible with latest Doctrine ORM 3 and DBAL 4? HOT 1
- Error when running 'diff' and 'migrate' at the same thread HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doctrinemigrationsbundle.