Plugin Directory


Ignore:
Timestamp:
10/19/2026 02:48:37 PM (3 weeks ago)
Author:
paintops
Message:

1.2.081

File:
1 edited

Legend:

Unmodified
Added
Removed
  • paintops/trunk/includes/schema.php

    r3747168 r3755014  
    476476
    477477    // 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
    481483    // one belongs to and which of the two buckets it's in. "context"
    482484    // separates general job photos (before/after, progress shots, an
    … …  
    15751577        'photo_role'      => $wpdb->prepare("ALTER TABLE %i ADD COLUMN photo_role VARCHAR(10) NULL", $photos),
    15761578        '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 carries
    1578         // either this file name or the old attachment_id, never both
    1579         // once it has been moved. See includes/receipt-storage.php and
    1580         // the batched migration on the Checkup screen. Job PHOTOS are
    1581         // 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.
    15821584        'private_file'    => $wpdb->prepare("ALTER TABLE %i ADD COLUMN private_file VARCHAR(190) NULL", $photos),
    15831585    ];
Note: See TracChangeset for help on using the changeset viewer.