0

当我尝试从终端生成迁移时,我遇到了这个问题。如何使用迁移配置教义?

https://i.ibb.co/HqWYBdT/imagen.png

4

1 回答 1

0
'doctrine' => [
    'migrations_configuration' => [
        'orm_default' => [
            'table_storage' => [
                'table_name' => 'migrations',
                'version_column_name' => 'version',
                'version_column_length' => 1024,
                'executed_at_column_name' => 'executedAt',
                'execution_time_column_name' => 'executionTime',
            ],
            'migrations_paths' => [
                'Migrations' => 'data/Migrations',
            ], // an array of namespace => path
            'migrations' => [], // an array of fully qualified migrations
            'all_or_nothing' => false,
            'check_database_platform' => true,
            'organize_migrations' => 'none', // year or year_and_month
            'custom_template' => null,
        ],
    ],
],
于 2021-03-07T00:34:49.520 回答