FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
gitlabhq/scripts/schema_changed.sh at master · sunchao9/gitlabhq · GitHub
sunchao9
/
gitlabhq
Public
forked from
gitlabhq/gitlabhq
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
gitlabhq
/
scripts
/
schema_changed.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (13 loc) · 423 Bytes
Breadcrumbs
gitlabhq
/
scripts
/
schema_changed.sh
Copy path
File metadata and controls
15 lines (13 loc) · 423 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!
/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
"
printf
"
The diff is as follows:\n
"
diff=
$(
git diff -p --binary -- db/schema.rb
)
printf
"
%s
"
"
$diff
"
exit
1
else
printf
"
db/schema.rb after rake db:migrate:reset matches one in the repository
"
fi
}
schema_changed
Back
|
FazBrowse Home
|
New Git URL