forked from mtusi2026/mtusi2026lab4
Добавить вложения: S3, метаданные в PostgreSQL и очистка незавершённых загрузок
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
# Наполняет БД синтетической историей и печатает планы запросов пагинации.
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
run_sql() {
|
||||
docker compose --env-file .env exec -T postgres psql -U messenger -d messenger -v ON_ERROR_STOP=1 -q
|
||||
}
|
||||
|
||||
run_sql < scripts/seed_history.sql
|
||||
run_sql < scripts/explain_history.sql
|
||||
Reference in New Issue
Block a user