All checks were successful
Frontend CI / build (push) Successful in 1m37s
### Description - READMEs are also updated! ### Package Changes _No response_ ### Screenshots _No response_ ### Reference Resolves #145. ### Checklist - [x] A milestone is set - [x] The related issuse has been linked to this branch Reviewed-on: #147 Co-authored-by: SquidSpirit <squid@squidspirit.com> Co-committed-by: SquidSpirit <squid@squidspirit.com>
16 lines
411 B
Bash
Executable File
16 lines
411 B
Bash
Executable File
#!/bin/sh
|
|
|
|
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
|
|
cd "$SCRIPT_DIR/../backend"
|
|
|
|
# Generate sqlx-data.json
|
|
cargo sqlx prepare --workspace
|
|
|
|
# Check if sqlx-data.json was modified and is not staged
|
|
if ! git diff --quiet .sqlx; then
|
|
echo "Error: json files in .sqlx were modified by 'cargo sqlx prepare' but are not staged."
|
|
echo "Please run 'git add backend/.sqlx' and try again."
|
|
exit 1
|
|
fi
|