Skip to content

Commit

Permalink
Fix zap/README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Apr 12, 2022
1 parent 4bdd830 commit 1b09b6a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions zap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b09b6a

Please sign in to comment.