Changeset 3755014 for paintops/trunk/includes/schema.php
- Timestamp:
- 10/19/2026 02:48:37 PM (3 weeks ago)
- File:
-
- 1 edited
-
paintops/trunk/includes/schema.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
paintops/trunk/includes/schema.php
r3747168 r3755014 476 476 477 477 // Job photos and expense receipts, both are just images attached to 478 // a job, stored as real WordPress media attachments (so they show up 479 // in the Media Library, survive backups, and work with any offload- 480 // to-S3 plugin) with this table only tracking which job/expense each 478 // a job. Since 1.2.058 (receipts) and 1.2.081 (photos) the file is in 479 // the plugin's private folder under the generated name in 480 // private_file, served through a permission-checked route; rows from 481 // before are media-library attachments (attachment_id) until the 482 // Checkup card moves them. This table tracks which job/expense each 481 483 // one belongs to and which of the two buckets it's in. "context" 482 484 // separates general job photos (before/after, progress shots, an … … 1575 1577 'photo_role' => $wpdb->prepare("ALTER TABLE %i ADD COLUMN photo_role VARCHAR(10) NULL", $photos), 1576 1578 'paired_photo_id' => $wpdb->prepare("ALTER TABLE %i ADD COLUMN paired_photo_id BIGINT UNSIGNED NULL", $photos), 1577 // PRIVATE RECEIPT STORAGE (2026-09-24). A receipt row carries1578 // either this file name or the old attachment_id, never both1579 // once it has been moved. See includes/receipt-storage.php and1580 // the batched migration on the Checkup screen. Job PHOTOS are1581 // untouched and keep using attachment_id.1579 // PRIVATE STORAGE (receipts 2026-09-24, job photos 1.2.081). A 1580 // row carries either this file name or the old attachment_id, 1581 // never both once it has been moved. See includes/receipt-storage.php, 1582 // includes/photo-storage.php and the batched migration on the 1583 // Checkup screen. 1582 1584 'private_file' => $wpdb->prepare("ALTER TABLE %i ADD COLUMN private_file VARCHAR(190) NULL", $photos), 1583 1585 ];
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)