mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
11 lines
305 B
Bash
11 lines
305 B
Bash
#!/bin/bash
|
|
|
|
## DB Schema Dump
|
|
if [[ $DB_SCHEMA_DUMP ]]; then
|
|
make dump-test-schema
|
|
if [[ $(git diff-files --patch server/datastore/mysql/schema.sql) ]]; then
|
|
echo "❌ fail: uncommited changes in schema.sql"
|
|
echo "please run 'make dump-test-schema' and commit the changes"
|
|
exit 1
|
|
fi
|
|
fi
|