diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..762086a --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +dump_data/dump-hexlet-friends.sql filter=lfs diff=lfs merge=lfs -text diff --git a/Makefile b/Makefile index 2f018a9..625f6a7 100644 --- a/Makefile +++ b/Makefile @@ -108,4 +108,12 @@ erd-in-png: erd-dot erd-in-pdf: erd-dot dot -Tpdf erd.dot -o erd.pdf +load-db: + uv run python manage.py dbshell < dump_data/dump-hexlet-friends.sql + +compose-load-db: + docker-compose run --rm db make load-db + +compose-setup: compose-load-db + .PHONY: install setup shell lint test check start sync secretkey requirements.txt diff --git a/dump_data/dump-hexlet-friends.sql b/dump_data/dump-hexlet-friends.sql new file mode 100644 index 0000000..33179e7 --- /dev/null +++ b/dump_data/dump-hexlet-friends.sql @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f5eeaca3eec54ec0fd322293221082cfbd947c03591362837be784f2e7fa77c +size 34786479