Skip to content

Commit 6637ca9

Browse files
committed
simplify setup
1 parent f140c02 commit 6637ca9

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

composer.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,15 @@
6262
},
6363
"scripts": {
6464
"clean-directories": "bin/console clean-directories cache log",
65+
"database:schema:create": "bin/console odm:schema:create",
6566
"database:schema:drop": "bin/console odm:schema:drop --db",
6667
"database:schema:update": "bin/console odm:schema:update",
67-
"database:schema:validate": "bin/console odm:schema:validate",
6868
"fix:cs": "mkdir -p build && vendor/bin/php-cs-fixer fix --cache-file=build/phpcs.cache",
6969
"setup:dev": [
7070
"@database:schema:drop --env=dev",
71-
"@database:schema:update --env=dev",
71+
"@database:schema:create --env=dev",
7272
"@clean-directories --env=dev"
7373
],
74-
"setup:phpunit": [
75-
"@database:schema:drop --env=phpunit",
76-
"@database:schema:update --env=phpunit",
77-
"@clean-directories --env=phpunit"
78-
],
7974
"test": [
8075
"@test:lint",
8176
"@test:static-analysis",

tests/PhpServerExtension.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ private function initialize(): void
5454
echo 'initialize: start'.PHP_EOL;
5555

5656
passthru($consolePath.' odm:schema:drop --db --env=phpunit');
57-
passthru($consolePath.' odm:schema:update --env=phpunit');
58-
57+
passthru($consolePath.' odm:schema:create --env=phpunit');
5958
passthru($consolePath.' clean-directories cache log --env=phpunit');
6059

6160
echo 'initialize: end'.PHP_EOL.PHP_EOL;

0 commit comments

Comments
 (0)