Giter Site home page Giter Site logo

contributte / doctrine-migrations Goto Github PK

View Code? Open in Web Editor NEW
39.0 8.0 14.0 1.4 MB

:running: Doctrine Migrations for Nette Framework

Home Page: https://contributte.org/packages/nettrine/migrations.html

License: MIT License

PHP 94.69% Makefile 5.31%
nette nette-framework migrations database doctrine2 doctrine-migrations nettrine

doctrine-migrations's Introduction

Website ๐Ÿš€ contributte.org | Contact ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป f3l1x.io | Twitter ๐Ÿฆ @contributte

Usage

To install latest version of nettrine/migrations use Composer.

composer require nettrine/migrations

Documentation

For details on how to use this package, check out our documentation.

Versions

State Version Branch Nette PHP
dev ^0.10 master 3.1+ >=8.1
stable ^0.9 master 3.1+ >=8.1

Development

See how to contribute to this package. This package is currently maintained by these authors.


Consider to support contributte development team. Also thank you for using this package.

doctrine-migrations's People

Contributors

depkacz avatar f3l1x avatar gappa avatar jankonas avatar janmikes avatar josefbenjac avatar jzaplet avatar mabar avatar petrparolek avatar rikap avatar rixafy avatar roman3349 avatar solcik avatar vody105 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

doctrine-migrations's Issues

Fresh installation error

Nette\DI\ServiceCreationException: Command "Doctrine\DBAL\Migrations\Tools\Console\Command\DiffCommand" missing tag "console.command[name]" or variable "$defaultName". in /var/www/html/vendor/contributte/console/src/DI/ConsoleExtension.php:161 Stack trace: #0 /var/www/html/vendor/nette/di/src/DI/Compiler.php(252): Contributte\Console\DI\ConsoleExtension->beforeCompile() #1 /var/www/html/vendor/nette/di/src/DI/Compiler.php(177): Nette\DI\Compiler->generateCode() #2 /var/www/html/vendor/nette/bootstrap/src/Bootstrap/Configurator.php(306): Nette\DI\Compiler->compile() #3 [internal function]: Nette\Configurator->generateContainer(Object(Nette\DI\Compiler)) #4 /var/www/html/vendor/nette/di/src/DI/ContainerLoader.php(125): call_user_func_array(Array, Array) #5 /var/www/html/vendor/nette/di/src/DI/ContainerLoader.php(85): Nette\DI\ContainerLoader->generate('Container_1b8af...', Array) #6 /var/www/html/vendor/nette/di/src/DI/ContainerLoader.php(47): Nette\DI\ContainerLoader->loadFile('Container_1b8af...', Array) #7 /var/www/html/vendor/nette/bootstrap/src/Bootstrap/Configurator.php(267): Nette\DI\ContainerLoader->load(Array, Array) #8 /var/www/html/vendor/nette/bootstrap/src/Bootstrap/Configurator.php(242): Nette\Configurator->loadContainer() #9 /var/www/html/app/bootstrap.php(38): Nette\Configurator->createContainer() #10 /var/www/html/bin/console(5): require('/var/www/html/a...') #11 {main}

Any ETA on version 0.7?

Hi, the latest stable version is not compatible with PHP 8 according to composer.json, can we expect it released any time soon?
This question applies to all nettrine packages, but I don't want to flood every repo with same issue.
Thanks.

Use with kdyby/doctrine

I would like to ask you if these migrations can be used with kdyby/doctrine and if so, how? Thank you in advance for your time.

Nette 3.x

I am trying to run migration on nette 3.x-beta, but it is not possible, because you lock packages. Please allow support for nette 3.x dev for dev-master branch. Thank you.

DI service not injected, when using migration --execute

Hi,

command migrations:migrate injects all DI services properly, but migrations:execute --up <version> is not injecting anything. I tried inject method and annotation with same result.

Thank you for creating cool stuff.

example migration:

final class Version20200615155743 extends AbstractMigration
{

	/**
	 * @inject
	 */
	public EntityManager $entityManager;

	public function up(Schema $schema): void
	{
		$this->entityManager->flush();
		$this->addSql('select 1');
	}

	public function down(Schema $schema): void
	{
	}
}

version v0.6.2 #04bcca7d3a81d9fdd276b22b9b5b6d41728c8d5f

Mention injects in documentation

Hi, it is worth mentioning in docs that it is possible to use @inject annotation or inject methods.

It might help someone ๐Ÿ˜‰

Or maybe add support for ContainerAwareInterface which is pretty common in Symfony world.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.