العودة إلى الدرس

ملف العمل الأصلي

reference/add-topic.sql

تحتفظ الشيفرة وصفحات الأمثلة القابلة للتشغيل بمعرّفاتها ونصوصها التجريبية الأصلية. يشرحها الدرس وإرشادات الملفات بلغتك.

-- 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'));