Migrate education data to SQLite
This commit is contained in:
+8
-2
@@ -1,9 +1,9 @@
|
||||
SHELL := /bin/bash
|
||||
|
||||
APP_PORT ?= 18080
|
||||
DATA_FILES := ../data/classnotes.txt ../data/学生课时账户.md $(wildcard ../data/admin_tasks.json) $(wildcard ../data/course_summary_state.json)
|
||||
DATA_FILES := $(wildcard ../data/xsk_education.db) $(wildcard ../data/sqlite_migration_report_*.json) $(wildcard ../archives/text-source-before-sqlite-*.tar.gz.sha256)
|
||||
|
||||
.PHONY: check smoke data-hash build up ps health deploy logs install-gitea-backup
|
||||
.PHONY: check smoke data-hash migrate-sqlite-dry-run migrate-sqlite build up ps health deploy logs install-gitea-backup
|
||||
|
||||
check:
|
||||
node --check app/static/app.js
|
||||
@@ -16,6 +16,12 @@ smoke:
|
||||
data-hash:
|
||||
sha256sum $(DATA_FILES)
|
||||
|
||||
migrate-sqlite-dry-run:
|
||||
python3 scripts/migrate_text_to_sqlite.py --data-root ../data --db-path ../data/xsk_education.db --archives-root ../archives --dry-run
|
||||
|
||||
migrate-sqlite:
|
||||
python3 scripts/migrate_text_to_sqlite.py --data-root ../data --db-path ../data/xsk_education.db --archives-root ../archives
|
||||
|
||||
build:
|
||||
docker compose build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user