Update migrations config

pull/3890/head
Julio Montoya 4 years ago
parent 3a37e42c5e
commit c897b15316
  1. 18
      config/packages/doctrine_migrations.yaml
  2. 4
      public/main/install/migrations.php

@ -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'

@ -1,5 +1,7 @@
<?php
// Sync this changes with the config/packages/doctrine_migrations.yaml file
return [
'table_storage' => [
'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,
];

Loading…
Cancel
Save