addes folder backup attachments logging
This commit is contained in:
@@ -123,6 +123,25 @@ Beim Start wird `config/filters.yaml` automatisch importiert (konfigurierbar via
|
||||
| `YAML_SYNC_ON_STARTUP` | `true` | YAML-Datei beim Start importieren |
|
||||
| `DATABASE_URL` | `sqlite:///data/mailfilter.db` | Datenbank-Pfad |
|
||||
|
||||
## Datenbank-Migrationen
|
||||
|
||||
Die Datenbank wird automatisch beim Start per **Alembic** migriert — Konten und Filterregeln bleiben bei Updates erhalten.
|
||||
|
||||
Falls du lokal entwickelst und das Schema änderst:
|
||||
|
||||
```bash
|
||||
# Neue Migration erstellen (nach Änderung an db_models.py)
|
||||
.venv/bin/alembic revision --autogenerate -m "beschreibung der änderung"
|
||||
|
||||
# Migration anwenden
|
||||
.venv/bin/alembic upgrade head
|
||||
|
||||
# Migrationsstatus prüfen
|
||||
.venv/bin/alembic current
|
||||
```
|
||||
|
||||
Im Docker passiert das automatisch beim Container-Start.
|
||||
|
||||
## Projektstruktur
|
||||
|
||||
```
|
||||
@@ -141,6 +160,9 @@ Beim Start wird `config/filters.yaml` automatisch importiert (konfigurierbar via
|
||||
│ │ └── encryption.py # Passwort-Verschlüsselung
|
||||
│ ├── templates/ # Jinja2 HTML-Templates
|
||||
│ └── static/ # CSS + JS
|
||||
├── alembic/ # Datenbank-Migrationen
|
||||
│ ├── env.py
|
||||
│ └── versions/ # Migrations-Skripte
|
||||
├── config/filters.yaml # YAML-Filterkonfiguration
|
||||
├── data/ # SQLite-Datenbank (Docker Volume)
|
||||
├── docker-compose.yml
|
||||
|
||||
Reference in New Issue
Block a user