Back to the lesson

Original working file

reference/add-topic.sql

Code and working example pages keep their original identifiers and sample text. The lesson and file guidance explain them in your language.

-- Apply after the starter schema, only in the disposable practice project.
alter table public.feedback add column topic text not null default 'question';
alter table public.feedback add constraint feedback_topic_allowed check (topic in ('project','question'));