7 lines
199 B
SQL
7 lines
199 B
SQL
-- One date per course: when it starts being held.
|
|
UPDATE courses
|
|
SET start_date = held_date
|
|
WHERE start_date IS NULL AND held_date IS NOT NULL;
|
|
|
|
ALTER TABLE courses DROP COLUMN IF EXISTS held_date;
|