Restructure
New Journal entries
Colour tabs update with wind
This commit is contained in:
fraxle
2026-08-31 15:12:45 +01:00
parent 47818fba33
commit 71860b9dd9
40 changed files with 3430 additions and 443 deletions
+14
View File
@@ -0,0 +1,14 @@
-- Adds an optional computed reading to a journal entry, captured the same
-- way the day tabs derive their headline number: peak value of the active
-- profile's main field across that day's hourly forecast rows. Only
-- possible for dates inside the 14-day forecast window, so it's nullable -
-- older/out-of-range entries stay note-only.
ALTER TABLE journal_entries
ADD COLUMN profile VARCHAR(32) NULL AFTER note,
ADD COLUMN reading DECIMAL(5,1) NULL AFTER profile,
ADD COLUMN location_name VARCHAR(255) NULL AFTER reading,
ADD COLUMN lat DECIMAL(8,5) NULL AFTER location_name,
ADD COLUMN lon DECIMAL(8,5) NULL AFTER lat;
INSERT IGNORE INTO schema_migrations (version) VALUES ('002_add_reading');