Initial commit

This commit is contained in:
Yannick7777 2025-04-02 15:21:48 +02:00 committed by GitHub
commit dc46c9e48f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 360 additions and 0 deletions

22
switch-branch-migrate Executable file
View file

@ -0,0 +1,22 @@
#!/bin/bash
if [[ "$(basename $(pwd))" == "laravel" ]]; then
cd ..
./switch-branch-migrate "$@"
cd laravel
exit
fi
branch_name=$1
cd laravel
if git show-ref --verify --quiet refs/heads/"$branch_name"; then
git checkout "$branch_name"
else
git checkout -b "$branch_name"
fi
cd ..
docker compose exec app php artisan migrate:fresh --seed