Skip to content

Commit

Permalink
fix bin path
Browse files Browse the repository at this point in the history
  • Loading branch information
jturbide committed Feb 23, 2024
1 parent fe768c6 commit 65a6da2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions bin/migration-generate.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
./vendor/bin/phalcon migration generate --config=./devtools.php --directory=./ --migrations=./src/Migrations/ --no-auto-increment --force --verbose --log-in-db "$@"
./vendor/bin/phpcbf --standard=phpcs-eol.xml ./src/Migrations/
./vendor/bin/phalcon migration generate --config=./devtools.php --directory=./ --migrations=./app/Migrations/ --no-auto-increment --force --verbose --log-in-db "$@"
./vendor/bin/phpcbf --standard=phpcs-eol.xml ./app/Migrations/
2 changes: 1 addition & 1 deletion bin/migration-list.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
./vendor/bin/phalcon migration list --config=./devtools.php --directory=./ --migrations=./src/Migrations/ --log-in-db "$@"
./vendor/bin/phalcon migration list --config=./devtools.php --directory=./ --migrations=./app/Migrations/ --log-in-db "$@"
2 changes: 1 addition & 1 deletion bin/migration-run.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
./vendor/bin/phalcon migration run --config=./devtools.php --directory=./ --migrations=./src/Migrations/ --no-auto-increment --force --verbose --log-in-db "$@"
./vendor/bin/phalcon migration run --config=./devtools.php --directory=./ --migrations=./app/Migrations/ --no-auto-increment --force --verbose --log-in-db "$@"
10 changes: 5 additions & 5 deletions bin/regenerate-all-models.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
rm -rf ./src/Models/Abstracts/Abstract*.php && ./vendor/bin/phalcon all-models --config=./devtools.php --get-set --camelize --mapcolumn --abstract --doc --directory=./ --output=./src/Models/Abstracts --relations --fk --force --namespace=Zemit\\Models\\Abstracts --extends=\\Zemit\\Models\\AbstractModel "$@"
find ./src/Models/Abstracts/ -type f -exec sed -i -e '/$this->setSchema/i \ parent::initialize();' {} \;
find ./src/Models/Abstracts/ -type f -exec sed -i -e 's/ $this->setSchema/ \/\/ $this->setSchema/g' {} \;
find ./src/Models/Abstracts/ -type f -exec sed -i -e 's/public function initialize()/public function initialize() :void/g' {} \;
./vendor/bin/phpcbf ./src/Models/Abstracts/
rm -rf ./app/Models/Abstracts/Abstract*.php && ./vendor/bin/phalcon all-models --config=./devtools.php --get-set --camelize --mapcolumn --abstract --doc --directory=./ --output=./app/Models/Abstracts --relations --fk --force --namespace=App\\Models\\Abstracts --extends=\\App\\Models\\AbstractModel "$@"
find ./app/Models/Abstracts/ -type f -exec sed -i -e '/$this->setSchema/i \ parent::initialize();' {} \;
find ./app/Models/Abstracts/ -type f -exec sed -i -e 's/ $this->setSchema/ \/\/ $this->setSchema/g' {} \;
find ./app/Models/Abstracts/ -type f -exec sed -i -e 's/public function initialize()/public function initialize() :void/g' {} \;
./vendor/bin/phpcbf ./app/Models/Abstracts/

0 comments on commit 65a6da2

Please sign in to comment.