Skip to content

Commit

Permalink
corrections
Browse files Browse the repository at this point in the history
Signed-off-by: alexmerlin <[email protected]>
  • Loading branch information
alexmerlin committed Nov 20, 2024
1 parent 15b6a66 commit ba3a6a4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
13 changes: 6 additions & 7 deletions config/cli-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
use Doctrine\Migrations\DependencyFactory;
use Doctrine\ORM\EntityManager;

$container = require 'config/container.php';
$container = require __DIR__ . '/container.php';

return DependencyFactory::fromEntityManager(
new PhpFile('config/migrations.php'),
new ExistingEntityManager(
$container->get(EntityManager::class)
)
);
$config = new PhpFile('config/migrations.php');

$entityManager = $container->get(EntityManager::class);

return DependencyFactory::fromEntityManager($config, new ExistingEntityManager($entityManager));
14 changes: 9 additions & 5 deletions config/migrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@
declare(strict_types=1);

return [
'table_storage' => [
'table_storage' => [
'table_name' => 'migrations',
'version_column_name' => 'version',
'version_column_length' => 191,
'executed_at_column_name' => 'executed_at',
'execution_time_column_name' => 'execution_time',
],
'migrations_paths' => [
'migrations_paths' => [
'Frontend\Migrations' => getcwd() . '/data/doctrine/migrations',
],
'all_or_nothing' => true,
'transactional' => true,
];
'all_or_nothing' => true,
'transactional' => true,
'check_database_platform' => true,
'organize_migrations' => 'none',
'connection' => null,
'em' => null,
];

Check failure on line 22 in config/migrations.php

View workflow job for this annotation

GitHub Actions / ci / QA Checks (PHPCodeSniffer [8.2, latest], ubuntu-latest, laminas/laminas-continuous-integration-ac...

Expected 1 newline at end of file; 0 found
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20241120152504 extends AbstractMigration
final class Version20241120160406 extends AbstractMigration
{
public function getDescription(): string
{
Expand Down

0 comments on commit ba3a6a4

Please sign in to comment.