Skip to content

Commit 2a60833

Browse files
committed
feat(dev): add makefile target to run db-check
Signed-off-by: Mike Fiedler <[email protected]>
1 parent bcaef48 commit 2a60833

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ inittuf: .state/db-migrated
145145
runmigrations: .state/docker-build-base
146146
docker compose run --rm web python -m warehouse db upgrade head
147147

148+
checkdb: .state/docker-build-base
149+
docker compose run --rm web bin/db-check
150+
148151
reindex: .state/docker-build-base
149152
docker compose run --rm web python -m warehouse search reindex
150153

@@ -168,4 +171,4 @@ purge: stop clean
168171
stop:
169172
docker compose stop
170173

171-
.PHONY: default build serve resetdb initdb shell dbshell tests dev-docs user-docs deps clean purge debug stop compile-pot runmigrations
174+
.PHONY: default build serve resetdb initdb shell dbshell tests dev-docs user-docs deps clean purge debug stop compile-pot runmigrations checkdb

0 commit comments

Comments
 (0)