-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,17 +20,19 @@ | |
1. テスト用のデータを生成します ``` | ||
```shell | ||
# MySQL を使用する例 | ||
## require-dev のパッケージをインストールしておく | ||
## ec-cube2/cli をインストールしておく | ||
docker-compose exec ec-cube composer install | ||
docker-compose exec -T ec-cube composer require ec-cube2/cli "dev-master@dev" --ignore-platform-req=php -W | ||
docker-compose exec -T ec-cube composer update 'symfony/*' --ignore-platform-req=php -W | ||
## ダミーデータを生成 | ||
docker-compose exec -T ec-cube php data/vendor/bin/eccube eccube:fixtures:generate --products=5 --customers=1 --orders=5 | ||
## メールアドレスを [email protected] に変更 | ||
docker-compose exec mysql mysql --user=eccube_db_user --password=password eccube_db -e "UPDATE dtb_customer SET email = '[email protected]' WHERE customer_id = (SELECT customer_id FROM (SELECT MAX(customer_id) FROM dtb_customer WHERE status = 2 AND del_flg = 0) AS A);" | ||
|
||
# PostgreSQL を使用する例 | ||
## require-dev のパッケージをインストールしておく | ||
## ec-cube2/cli をインストールしておく | ||
docker-compose exec ec-cube composer install | ||
docker-compose exec -T ec-cube composer require ec-cube2/cli "dev-master@dev" --ignore-platform-req=php -W | ||
docker-compose exec -T ec-cube composer update 'symfony/*' --ignore-platform-req=php -W | ||
## ダミーデータを生成 | ||
docker-compose exec -T ec-cube php data/vendor/bin/eccube eccube:fixtures:generate --products=5 --customers=1 --orders=5 | ||
|