v5 migration: dex_report_date and install_date columns #37

Closed
opened 2026-05-23 21:28:10 +00:00 by shawn · 0 comments
Owner

What

Added two new columns to the assets table via ALTER TABLE ADD COLUMN migration:

  1. dex_report_date TEXT DEFAULT NULL - stores Last Dex Report Time from Cantaloupe import as ISO datetime string
  2. install_date TEXT DEFAULT NULL - stores machine deployment date

Files changed

  • server.py init_db() lines 460-465 (after disney_park migration)
  • admin_server.py init_db() lines 333-337 (after geofence_radius migration)

Pattern

Uses existing PRAGMA table_info pattern (same as lat/lng v3 migration).

Verified

Columns confirmed in assets.db. Both servers healthy.

## What Added two new columns to the assets table via ALTER TABLE ADD COLUMN migration: 1. `dex_report_date TEXT DEFAULT NULL` - stores Last Dex Report Time from Cantaloupe import as ISO datetime string 2. `install_date TEXT DEFAULT NULL` - stores machine deployment date ## Files changed - server.py init_db() lines 460-465 (after disney_park migration) - admin_server.py init_db() lines 333-337 (after geofence_radius migration) ## Pattern Uses existing PRAGMA table_info pattern (same as lat/lng v3 migration). ## Verified Columns confirmed in assets.db. Both servers healthy.
shawn closed this issue 2026-05-23 21:28:16 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shawn/canteen-asset-tracker#37