Skip to content

Commit

Permalink
fix: Monkey-patch schema.rs
Browse files Browse the repository at this point in the history
Diesel uses ``Integers`` by default, but we want some ``BigInts``.
Add some sed to the build to handle this automatically.
  • Loading branch information
4nickel committed Dec 4, 2019
1 parent 585c50f commit 6385083
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ assets:
.PHONY: db
db:
source $(ENVRC) && diesel migration run
sed -i src/db/schema.rs -e "10s/.*/ bytes -> BigInt,/"
cargo fmt -- src/db/schema.rs

.PHONY: service
service: assets db release
Expand Down

0 comments on commit 6385083

Please sign in to comment.