mirror of
https://github.com/fleetdm/fleet
synced 2026-05-16 13:38:43 +00:00
11 lines
No EOL
290 B
Bash
11 lines
No EOL
290 B
Bash
#!/bin/bash
|
|
|
|
## DB Schema Dump
|
|
if [[ $DB_SCHEMA_DUMP ]]; then
|
|
make dump-test-schema
|
|
if [[ $(git diff 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 |