feat: M2 database migration runner with Phinx and initial schema
This commit is contained in:
1 parent
d3e8cf8fae
commit
93d991703c
20 files changed
+2000
-14
No files matched your search
@@ -4,7 +4,10 @@ cd -- "$(CDPATH='' cd -- "$(dirname -- "$0")" && pwd)"
|
||||
cmd=${1:-}
|
||||
if [ "$#" -gt 0 ]; then shift; fi
|
||||
case "$cmd" in
|
||||
migrate|seed) echo "$cmd unavailable until M2 (#12); #10 remains open" >&2; exit 1 ;;
|
||||
migrate)
|
||||
exec docker compose run --rm --no-deps -T --entrypoint sh app -c "vendor/bin/phinx migrate $*" ;;
|
||||
seed)
|
||||
exec docker compose run --rm --no-deps -T --entrypoint sh app -c "vendor/bin/phinx seed:run $*" ;;
|
||||
down)
|
||||
for arg do
|
||||
case "$arg" in
|
||||
|
||||
Reference in new issue
Block a user