Skip to content

Commit 516885b

Browse files
authored
Merge pull request diesel-rs#982 from killercup/fix/updates-guide-ci
Fix building examples without migrations on CI
2 parents 3b04e3c + 65efe94 commit 516885b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

examples/postgres/test_all

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ set +a
88

99
for dir in $(find . -maxdepth 1 -mindepth 1 -type d); do
1010
cd $dir
11-
../../../bin/diesel database reset
11+
12+
if [ -d "migrations" ]; then
13+
../../../bin/diesel database reset
14+
fi
15+
1216
cargo build
1317
cd ..
1418
done

0 commit comments

Comments
 (0)