EC-CUBE / EC-CUBE/ec-cube

Customizeディレクトリ配下にも DoctrineMigrations ファイルを設置したい

Open
#4,497 0 comments 1 reaction 0 assignees View on GitHub
enhancement Status: discussion
Dominant language
PHP
Stars
788
Forks
719
Avg merge
4d 4h
Merged PRs (30d)
39

Description

## 概要(Overview)

Customizeディレクトリ配下にも DoctrineMigrations ファイルを設置したい。

現在 `app/DoctrineMigrations` のみが DoctrineMigrations ファイルの設置場所として設定されている。

設定は以下
https://github.com/EC-CUBE/ec-cube/blob/4.0/app/config/eccube/packages/doctrine_migrations.yaml#L1-L4

現在利用している doctrine-migrations-bundle の 1.3 ではディレクトリの複数設定ができない。
[doctrine-migrations-bundle 1.3 のドキュメント](https://symfony.com/doc/1.3/bundles/DoctrineMigrationsBundle/index.html)

Customizeディレクトリ配下にも DoctrineMigrations ファイルを設置するためには doctrine-migrations-bundle を 3.0 以上にあげるか、EC-CUBEが独自で拡張機構を提供する必要がある。
[doctrine-migrations-bundle 3.0 のドキュメント](https://symfony.com/doc/master/bundles/DoctrineMigrationsBundle/index.html)

## 期待する内容(Expect) or 要望 (Requirement)

導入方針が決まり、Customizeディレクトリ配下にも DoctrineMigrations ファイルを設置できる。

## 再現手順(Procedure)

app/Customize/DoctrineMigrations ディレクトリにマイグレーションファイルを設置してもマイグレーションコマンドで認識されない。

### 環境 (environment)
+ EC-CUBE: 4.0.x
+ PHP: 7.1.3

## 関連情報 (Ref)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.