gruberro / php-mongo-migrations Goto Github PK
View Code? Open in Web Editor NEWManage changes for your MongoDB documents
License: MIT License
Manage changes for your MongoDB documents
License: MIT License
I think ContextualMigrationInterface
and RunAlwaysMigrationInterface
should extend MigrationInterface
because without it they are useless.
What do you think?
Here it is the problematic part of my composer.json:
{
"config": {
"bin-dir": "bin"
}
}
So, Composer creates symbolic link migrations
under project's bin
folder. But when I try to execute this binary I get the following error:
enl@alex-panshin:~/projects/wachanga/babycare$ bin/migrations
PHP Warning: require(/home/enl/projects/wachanga/babycare/vendor/gruberro/php-mongo-migrations/bin/../vendor/autoload.php): failed to open stream: No such file or directory in /home/enl/projects/wachanga/babycare/vendor/gruberro/php-mongo-migrations/bin/migrations on line 4
PHP Stack trace:
PHP 1. {main}() /home/enl/projects/wachanga/babycare/vendor/gruberro/php-mongo-migrations/bin/migrations:0
PHP Fatal error: require(): Failed opening required '/home/enl/projects/wachanga/babycare/vendor/gruberro/php-mongo-migrations/bin/../vendor/autoload.php' (include_path='.:/usr/share/php') in /home/enl/projects/wachanga/babycare/vendor/gruberro/php-mongo-migrations/bin/migrations on line 4
PHP Stack trace:
PHP 1. {main}() /home/enl/projects/wachanga/babycare/vendor/gruberro/php-mongo-migrations/bin/migrations:0
My PHP version is:
PHP 7.1.4-1+deb.sury.org~xenial+1 (cli) (built: Apr 11 2017 22:12:32) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.4-1+deb.sury.org~xenial+1, Copyright (c) 1999-2017, by Zend Technologies
with Xdebug v2.5.1, Copyright (c) 2002-2017, by Derick Rethans
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.