Files
usda-vision/web/supabase/migrations/20250721000001_add_scheduled_date.sql
Alireza Vaezi d4ad5f1ab8 Add 'web/' from commit 'd8907af5e7234f12256eb3e5e4f7243eb83474e4'
git-subtree-dir: web
git-subtree-mainline: d572e3d241
git-subtree-split: d8907af5e7
2025-08-07 20:57:47 -04:00

13 lines
594 B
SQL

-- Add scheduled_date field to experiments table
-- This migration adds support for storing when experiments are scheduled to run
-- Add scheduled_date column to experiments table
ALTER TABLE public.experiments
ADD COLUMN IF NOT EXISTS scheduled_date TIMESTAMP WITH TIME ZONE;
-- Create index for better performance when querying by scheduled date
CREATE INDEX IF NOT EXISTS idx_experiments_scheduled_date ON public.experiments(scheduled_date);
-- Add comment for documentation
COMMENT ON COLUMN public.experiments.scheduled_date IS 'Date and time when the experiment is scheduled to run';