summaryrefslogtreecommitdiff
path: root/scripts/schema_changed.sh
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2019-07-08 17:35:20 +0200
committerAndreas Brandl <abrandl@gitlab.com>2019-07-08 17:35:20 +0200
commitbc8eb78aa4a5c8f9916c0af0ba96983480339c1d (patch)
treecd510e77e6f782afb8ac2c490efc041eb5d67f8e /scripts/schema_changed.sh
parent8f9fbbebc5c5b679730a14a8aef165954c1099c0 (diff)
downloadgitlab-ce-ab-structure-sql2.tar.gz
WIP: Move to structure.sqlab-structure-sql2
Diffstat (limited to 'scripts/schema_changed.sh')
-rw-r--r--scripts/schema_changed.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/schema_changed.sh b/scripts/schema_changed.sh
index b5e510c2367..e8c120e92e1 100644
--- a/scripts/schema_changed.sh
+++ b/scripts/schema_changed.sh
@@ -1,14 +1,14 @@
#!/bin/sh
schema_changed() {
- if [ ! -z "$(git diff --name-only -- db/schema.rb)" ]; then
- printf "db/schema.rb after rake db:migrate:reset is different from one in the repository"
+ if [ ! -z "$(git diff --name-only -- db/structure.sql)" ]; then
+ printf "db/structure.sql after rake db:migrate:reset is different from one in the repository"
printf "The diff is as follows:\n"
- diff=$(git diff -p --binary -- db/schema.rb)
+ diff=$(git diff -p --binary -- db/structure.sql)
printf "%s" "$diff"
exit 1
else
- printf "db/schema.rb after rake db:migrate:reset matches one in the repository"
+ printf "db/structure.sql after rake db:migrate:reset matches one in the repository"
fi
}