4MKRMHNU3LMN4TDH6U4GL53F65WPX2E4PFIGLTMSMJ54CM7EVJCQC is_solar_night BOOLEAN, --calculate with function on client. this is a more accurate value to file tableis_civil_night BOOLEAN, --calculate with function on client. this is a more accurate value to file tablemoon_phase DECIMAL(3,2) CHECK (moon_phase BETWEEN 0.00 AND 1.00), -- 0.00 to 1.00 (new moon to full moon)
-- Drop redundant astronomical columns from selection table (data exists in file table)DROP INDEX idx_selection_is_solar_night;DROP INDEX idx_selection_is_civil_night;DROP INDEX idx_selection_moon_phase;ALTER TABLE selection DROP COLUMN is_solar_night;ALTER TABLE selection DROP COLUMN is_civil_night;ALTER TABLE selection DROP COLUMN moon_phase;SELECT NOW();-- 2025-07-07 02:34:12.000000+00