Setup database #1

Merged
GW_MC merged 16 commits from feature/database-setup into master 2025-11-19 21:49:32 +08:00
Showing only changes of commit 17f7e06e8a - Show all commits

View File

@@ -33,11 +33,11 @@ jobs:
run: | run: |
cd apps/cli cd apps/cli
cargo run -- db:migrate_and_generate --output-path ../../public/database/src/generated/entities cargo run -- db:migrate_and_generate --output-path ../../public/database/src/generated/entities
- name: Check for uncommitted changes - name: Check for uncommitted changes in /generated/
run: | run: |
if [[ -n $(git status --porcelain) ]]; then if [[ -n $(git status --porcelain | grep '^ M .*\/generated\/') ]]; then
echo "Generated code is not up to date. Please run the code generation locally and commit the changes." echo "Generated code is not up to date. Please run the code generation locally and commit the changes."
git status --porcelain git status --porcelain | grep '^ M .*\/generated\/'
exit 1 exit 1
else else
echo "Generated code is up to date." echo "Generated code is up to date."