Files
cbd420/migrations/add_start_time_to_drops.sql
2025-12-20 22:05:21 +01:00

8 lines
296 B
SQL

-- Add start_time column to drops table
ALTER TABLE `drops`
ADD COLUMN `start_time` datetime DEFAULT NULL AFTER `created_at`;
-- Update existing drops to have start_time = created_at (so they're immediately available)
UPDATE `drops` SET `start_time` = `created_at` WHERE `start_time` IS NULL;