This commit is contained in:
2026-05-05 22:36:55 +02:00
parent cf1a0adb0b
commit cb077e80d8
39 changed files with 812 additions and 84 deletions

View File

@@ -280,6 +280,26 @@ Schema inferred from Medoo ORM queries in PHP source files. No migration files f
| `mail` | TEXT | Message body |
| `add_date` | DATETIME | Submission timestamp |
**`contact_messages`** — External contact form submissions database used by `plugins/special-actions-middle.php`
| Column | Type | Notes |
|--------|------|-------|
| `form_id` | VARCHAR | Form identifier, e.g. `contact-form-new`, `modal-contact-form` |
| `name` | VARCHAR | Sender name |
| `email` | VARCHAR | Sender email |
| `phone` | VARCHAR | Sender phone |
| `message` | TEXT | Message body |
| `zip_code` | VARCHAR | Postal code |
| `topic` | VARCHAR | Subject/topic |
| `company` | VARCHAR | Company name |
| `invoice_number` | VARCHAR | Invoice/reference number |
| `address` | VARCHAR | Address |
| `voivodeship` | VARCHAR | Province/voivodeship |
| `client_type` | VARCHAR | Client segment |
| `consent_offer` | TINYINT | Offer consent flag |
| `consent_marketing` | TINYINT | Marketing consent flag |
| `attachments` | TEXT NULL | JSON array of public attachment links; auto-created by `saveContactData()` if missing |
| `created_at` | DATETIME | Submission timestamp |
---
## SEO & Settings

View File

@@ -1,14 +1,30 @@
# Technical Changelog
> Chronological log of technical changes what and why.
> Chronological log of technical changes - what and why.
## 2026-05-05 — Codebase Mapping
## 2026-05-05 - Phase 01 / Plan 01 Contact Attachments
**Co zrobiono / What changed:**
- Added persistent contact attachment handling for file-enabled contact forms.
- Added automatic `contact_messages.attachments` schema upgrade in `saveContactData()`.
- Added dedicated public upload storage under `uploads/contact-attachments/YYYY/mm/`.
- Updated contact and modal upload UI to show/enforce a 50 MB per-file limit and matching allowed extensions.
**Dlaczego / Why:**
- Contact attachments were previously stored only in `temp/` for email delivery, so they could disappear after automatic cleanup and were not recoverable from database records.
**BREAKING / Migration note:**
- First successful form save after deployment may run `ALTER TABLE contact_messages ADD attachments TEXT NULL AFTER consent_marketing`.
---
## 2026-05-05 - Codebase Mapping
**Co zrobiono / What changed:**
- Initial codebase map created in `.paul/codebase/` (9 documents)
- Analyzed stack, architecture, structure, conventions, integrations, concerns, DB schema
**Dlaczego / Why:**
- First-time PAUL project setup baseline documentation for future planning
- First-time PAUL project setup - baseline documentation for future planning
---