From f1242647381058507e1938ad2707829a8259aa6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=CC=81scar=20M=2E=20Lage?= Date: Thu, 14 Nov 2024 13:03:31 +0100 Subject: [PATCH] Applied migraitons + fixed `make migrate` command --- Makefile | 8 ++++++++ src/{blueskydj => }/core/migrations/__init__.py | 0 src/requirements.txt | 1 + 3 files changed, 9 insertions(+) rename src/{blueskydj => }/core/migrations/__init__.py (100%) diff --git a/Makefile b/Makefile index 2af93cd..4e732de 100644 --- a/Makefile +++ b/Makefile @@ -232,6 +232,13 @@ restore: ## Run 'restore' service @$(DOCKER_COMPOSE) $(DOCKER_COMPOSE_FILES) run --rm $(RESTORE_SERVICE) +## +# migrate +# +migrate: ## Run 'migrate', django migrations, needs the container to be up and running + @$(DOCKER) exec -it "$(container)" /entrypoint.sh run-migrations + + cleandb: @prefix="bsky.local-"; \ path="_data/backup/*" ; \ @@ -266,6 +273,7 @@ cleandb: fi ; \ done ; + %: @: diff --git a/src/blueskydj/core/migrations/__init__.py b/src/core/migrations/__init__.py similarity index 100% rename from src/blueskydj/core/migrations/__init__.py rename to src/core/migrations/__init__.py diff --git a/src/requirements.txt b/src/requirements.txt index dbde922..d6206c2 100644 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -1,2 +1,3 @@ Django==5.1.3 python-decouple==3.8 +mysqlclient==2.2.6