This commit is contained in:
relikd
2023-05-29 15:20:07 +02:00
commit 1380b156d8
126 changed files with 3612 additions and 0 deletions

19
Makefile Normal file
View File

@@ -0,0 +1,19 @@
.PHONY: help
help:
@echo
@echo 'Available commands:'
@echo ' init: Create initial database and super user'
@echo
.PHONY: init
init:
python3 manage.py migrate
python3 manage.py loaddata traits.json booking_types.json
python3 manage.py createsuperuser
.PHONY: get_columns
get_columns:
@for x in $$(sqlite3 data/db.sqlite3 '.tables base_%'); do \
echo; echo "=== $$x ==="; \
sqlite3 data/db.sqlite3 "PRAGMA table_info($$x)" | cut -d'|' -f1-2; \
done