diff --git a/config/packages/doctrine_migrations.yaml b/config/packages/doctrine_migrations.yaml index 8bf589e3a6..421863a488 100644 --- a/config/packages/doctrine_migrations.yaml +++ b/config/packages/doctrine_migrations.yaml @@ -1,10 +1,22 @@ doctrine_migrations: + # Sync this changes with the public/main/install/migrations.php file migrations_paths: - 'Chamilo\CoreBundle\Migrations\Schema\V200': 'src/CoreBundle/Migrations/Schema/V200' + 'Chamilo\CoreBundle\Migrations\Schema\V200': '%kernel.project_dir%/src/CoreBundle/Migrations/Schema/V200' + + connection: default # Run all migrations in a transaction. - all_or_nothing: true + all_or_nothing: false # Adds an extra check in the generated migrations to ensure that is executed on the same database type. check_database_platform: true - connection: default + + storage: + # Default (SQL table) metadata storage configuration + table_storage: + table_name: 'version' + version_column_name: 'version' + version_column_length: 1024 + executed_at_column_name: 'executed_at' + + diff --git a/public/main/install/migrations.php b/public/main/install/migrations.php index 64b7f0cca3..0fa9aabd96 100644 --- a/public/main/install/migrations.php +++ b/public/main/install/migrations.php @@ -1,5 +1,7 @@ [ 'table_name' => 'version', @@ -11,6 +13,6 @@ return [ 'migrations_paths' => [ 'Chamilo\CoreBundle\Migrations\Schema\V200' => '../../../src/CoreBundle/Migrations/Schema/V200', ], - 'all_or_nothing' => true, + 'all_or_nothing' => false, 'check_database_platform' => true, ];