Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with executing migrations #130

Open
yapro opened this issue Jun 20, 2016 · 3 comments
Open

Problems with executing migrations #130

yapro opened this issue Jun 20, 2016 · 3 comments

Comments

@yapro
Copy link

yapro commented Jun 20, 2016

composer install

You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Warning: This development build of composer is over 60 days old. It is recommended to update it by running "/usr/bin/composer self-update" to get the latest version.
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
  - Installing doctrine/common (2.2.3)
    Loading from cache

  - Installing symfony/yaml (v2.8.7)
    Loading from cache

  - Installing symfony/polyfill-mbstring (v1.2.0)
    Loading from cache

  - Installing symfony/console (v2.8.7)
    Loading from cache

  - Installing zendframework/zend-eventmanager (3.0.1)
    Loading from cache

  - Installing zendframework/zend-code (2.6.3)
    Loading from cache

  - Installing ocramius/proxy-manager (1.0.2)
    Loading from cache

  - Installing doctrine/dbal (2.2.2)
    Loading from cache

  - Installing doctrine/migrations (dev-master 93a4458)
    Cloning 93a4458195aaf65a84b3d8b5a98b89149ef49776

  - Installing incenteev/composer-parameter-handler (v2.1.2)
    Loading from cache

  - Installing symfony/routing (v3.0.7)
    Loading from cache

  - Installing ircmaxell/password-compat (v1.0.4)
    Loading from cache

  - Installing symfony/polyfill-php55 (v1.2.0)
    Loading from cache

  - Installing symfony/polyfill-php54 (v1.2.0)
    Loading from cache

  - Installing symfony/http-foundation (v2.8.7)
    Loading from cache

  - Installing symfony/event-dispatcher (v2.8.7)
    Loading from cache

  - Installing psr/log (1.0.0)
    Loading from cache

  - Installing symfony/debug (v2.8.7)
    Loading from cache

  - Installing symfony/http-kernel (v2.8.7)
    Loading from cache

  - Installing pimple/pimple (v1.1.1)
    Loading from cache

  - Installing silex/silex (v1.3.5)
    Loading from cache

  - Installing swiftmailer/swiftmailer (v4.1.8)
    Loading from cache

  - Installing symfony/process (v2.8.7)
    Loading from cache

  - Installing paragonie/random_compat (v1.4.1)
    Loading from cache

  - Installing symfony/security (v2.6.13)
    Loading from cache

  - Installing twig/twig (v1.24.1)
    Loading from cache

  - Installing symfony/twig-bridge (v2.8.7)
    Loading from cache

zendframework/zend-eventmanager suggests installing container-interop/container-interop (^1.1.0, to use the lazy listeners feature)
zendframework/zend-eventmanager suggests installing zendframework/zend-stdlib (^2.7.3 || ^3.0, to use the FilterChain feature)
zendframework/zend-code suggests installing doctrine/annotations (Doctrine\Common\Annotations >=1.0 for annotation features)
zendframework/zend-code suggests installing zendframework/zend-stdlib (Zend\Stdlib component)
ocramius/proxy-manager suggests installing ocramius/generated-hydrator (To have very fast object to array to object conversion for ghost objects)
ocramius/proxy-manager suggests installing zendframework/zend-json (To have the JsonRpc adapter (Remote Object feature))
ocramius/proxy-manager suggests installing zendframework/zend-soap (To have the Soap adapter (Remote Object feature))
ocramius/proxy-manager suggests installing zendframework/zend-stdlib (To use the hydrator proxy)
ocramius/proxy-manager suggests installing zendframework/zend-xmlrpc (To have the XmlRpc adapter (Remote Object feature))
doctrine/migrations suggests installing jdorn/sql-formatter (Allows to generate formatted SQL with the diff command.)
symfony/routing suggests installing doctrine/annotations (For using the annotation loader)
symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader)
symfony/routing suggests installing symfony/dependency-injection (For loading routes from a service)
symfony/routing suggests installing symfony/expression-language (For using expression matching)
symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/http-kernel suggests installing symfony/browser-kit ()
symfony/http-kernel suggests installing symfony/class-loader ()
symfony/http-kernel suggests installing symfony/config ()
symfony/http-kernel suggests installing symfony/dependency-injection ()
symfony/http-kernel suggests installing symfony/finder ()
symfony/http-kernel suggests installing symfony/var-dumper ()
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
symfony/security suggests installing symfony/class-loader (For using the ACL generateSql script)
symfony/security suggests installing symfony/expression-language (For using the expression voter)
symfony/security suggests installing symfony/finder (For using the ACL generateSql script)
symfony/security suggests installing symfony/validator (For using the user password constraint)
symfony/twig-bridge suggests installing symfony/asset (For using the AssetExtension)
symfony/twig-bridge suggests installing symfony/expression-language (For using the ExpressionExtension)
symfony/twig-bridge suggests installing symfony/finder ()
symfony/twig-bridge suggests installing symfony/form (For using the FormExtension)
symfony/twig-bridge suggests installing symfony/stopwatch (For using the StopwatchExtension)
symfony/twig-bridge suggests installing symfony/templating (For using the TwigEngine)
symfony/twig-bridge suggests installing symfony/translation (For using the TranslationExtension)
symfony/twig-bridge suggests installing symfony/var-dumper (For using the DumpExtension)
Generating autoload files
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Updating the "config/parameters.yml" file

./console migrations:migrate

[20-Jun-2016 19:28:50 Europe/Moscow] PHP Fatal error:  Class 'Kurl\Silex\Provider\DoctrineMigrationsProvider' not found in /var/tmp/pinboard/console on line 17
[20-Jun-2016 19:28:50 Europe/Moscow] PHP Stack trace:
[20-Jun-2016 19:28:50 Europe/Moscow] PHP   1. {main}() /var/tmp/pinboard/console:0

grep -r DoctrineMigrationsProvider ./

./console:    new \Kurl\Silex\Provider\DoctrineMigrationsProvider($console),

grep -r silex-doctrine-migrations-provider ./

./composer.json:        "kurl/silex-doctrine-migrations-provider": "~0.1",
./vendor/doctrine/migrations/README.md:  * [Silex](https://packagist.org/packages/kurl/silex-doctrine-migrations-provider)

May be problem in composer.lock as we see above:

Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.

ls -la vendor

total 68
drwxrwxr-x 16 lebnik lebnik 4096 июня  20 19:28 .
drwxrwxr-x  8 lebnik lebnik 4096 июня  20 19:32 ..
-rw-rw-r--  1 lebnik lebnik  183 июня  20 19:28 autoload.php
drwxrwxr-x  2 lebnik lebnik 4096 июня  20 19:28 bin
drwxrwxr-x  2 lebnik lebnik 4096 июня  20 19:28 composer
drwxrwxr-x  5 lebnik lebnik 4096 июня  20 19:28 doctrine
drwxrwxr-x  3 lebnik lebnik 4096 июня  20 19:28 incenteev
drwxrwxr-x  3 lebnik lebnik 4096 июня  20 19:28 ircmaxell
drwxrwxr-x  3 lebnik lebnik 4096 июня  20 19:28 ocramius
drwxrwxr-x  3 lebnik lebnik 4096 июня  20 19:28 paragonie
drwxrwxr-x  3 lebnik lebnik 4096 июня  20 19:28 pimple
drwxrwxr-x  3 lebnik lebnik 4096 июня  20 19:28 psr
drwxrwxr-x  3 lebnik lebnik 4096 июня  20 19:28 silex
drwxrwxr-x  3 lebnik lebnik 4096 июня  20 19:28 swiftmailer
drwxrwxr-x 15 lebnik lebnik 4096 июня  20 19:28 symfony
drwxrwxr-x  3 lebnik lebnik 4096 июня  20 19:28 twig
drwxrwxr-x  4 lebnik lebnik 4096 июня  20 19:28 zendframework

pinboard v1.5.2

I think you need to delete /composer.lock from .gitignore and than execute the command:

composer update kurl/silex-doctrine-migrations-provider doctrine/migrations

Because ignore composer.lock it very bad practice.

@muxx
Copy link
Member

muxx commented Jun 23, 2016

It is very bad practice https://github.com/symfony/symfony/blob/master/.gitignore#L2 ? :)

@yapro
Copy link
Author

yapro commented Jun 23, 2016

As far as I know, when you installing the symfony is used the symfony/symfony-standard and file https://github.com/symfony/symfony-standard/blob/master/composer.lock

@muxx
Copy link
Member

muxx commented Jun 23, 2016

Thanks! I will add lock-file in nearest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants