diff --git a/bin/doctrine-migrations b/bin/doctrine-migrations deleted file mode 100644 index d40cc55..0000000 --- a/bin/doctrine-migrations +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env php -get(EntityManager::class); -$entityManager->getEventManager(); - -return DependencyFactory::fromEntityManager( - new ConfigurationArray($container->get('config')['doctrine']['migrations']), - new ExistingEntityManager($entityManager) -); diff --git a/src/App/src/ConfigProvider.php b/src/App/src/ConfigProvider.php index c1dec1a..f41f864 100644 --- a/src/App/src/ConfigProvider.php +++ b/src/App/src/ConfigProvider.php @@ -96,12 +96,12 @@ private function getDoctrineConfig(): array ], 'configuration' => [ 'orm_default' => [ - 'result_cache' => 'filesystem', - 'metadata_cache' => 'filesystem', - 'query_cache' => 'filesystem', - 'hydration_cache' => 'array', - 'typed_field_mapper' => null, - 'second_level_cache' => [ + 'result_cache' => 'filesystem', + 'metadata_cache' => 'filesystem', + 'query_cache' => 'filesystem', + 'hydration_cache' => 'array', + 'typed_field_mapper' => null, + 'second_level_cache' => [ 'enabled' => true, 'default_lifetime' => 3600, 'default_lock_lifetime' => 60, @@ -117,14 +117,6 @@ private function getDoctrineConfig(): array 'class' => MappingDriverChain::class, ], ], - 'migrations' => [ - // Modify this line based on where you would like to have you migrations - 'migrations_paths' => [ - 'Migrations' => 'src/Migrations', - ], - 'all_or_nothing' => true, - 'check_database_platform' => true, - ], 'types' => [ UuidType::NAME => UuidType::class, ],