8 lines
295 B
SQL
8 lines
295 B
SQL
-- Optional future publication time for draft courses.
|
|
alter table courses
|
|
add column if not exists scheduled_publish_at timestamptz;
|
|
|
|
create index if not exists courses_scheduled_publish_index
|
|
on courses (scheduled_publish_at)
|
|
where status = 'draft' and scheduled_publish_at is not null;
|