Add AppState to Controller and split up models

This commit is contained in:
Tobias Reisinger 2023-12-07 01:32:20 +01:00
parent 8dc9072fe8
commit 83c1f033d5
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
11 changed files with 261 additions and 150 deletions

View file

@ -3,7 +3,7 @@ build:
cargo build
sqlx-prepare:
rm ./emgauwa-dev.sqlite || true
rm -f ./emgauwa-dev.sqlite
cargo sqlx database create
cargo sqlx migrate run
@ -14,9 +14,7 @@ build-rpi:
cross build --target arm-unknown-linux-gnueabihf
clean-db:
rm ./emgauwa-dev.sqlite || true
rm ./emgauwa-core.sqlite || true
rm ./emgauwa-controller.sqlite || true
rm ./emgauwa-*.sqlite || true
$(MAKE) sqlx-prepare
format: