feat: filter community questions by course (#157)
* checkpoint save * checkpoint * feat: course dropdown * added comments * feat: generate db migration * fixes * PR Fixes * PR Fixes * refactoring * show empty state * improve styling * fix styling issue * PR Fixes * PR Fixes * PR Fixes * dropdown for edit mode * test db schema change on staging * fix: change course_id to courseId * fix theming issue --------- Co-authored-by: Rotimi Best <best@classroomio.com>
This commit is contained in:
co-authored by
Rotimi Best
parent
75e32a22f6
commit
13ab070178
@@ -0,0 +1,20 @@
|
||||
create sequence "public"."test_tenant_id_seq";
|
||||
|
||||
create table "public"."test_tenant" (
|
||||
"id" integer not null default nextval('test_tenant_id_seq'::regclass),
|
||||
"details" text
|
||||
);
|
||||
|
||||
truncate "public"."community_question" cascade;
|
||||
|
||||
alter table "public"."community_question" add column "course_id" uuid not null;
|
||||
|
||||
alter sequence "public"."test_tenant_id_seq" owned by "public"."test_tenant"."id";
|
||||
|
||||
CREATE UNIQUE INDEX test_tenant_pkey ON public.test_tenant USING btree (id);
|
||||
|
||||
alter table "public"."test_tenant" add constraint "test_tenant_pkey" PRIMARY KEY using index "test_tenant_pkey";
|
||||
|
||||
alter table "public"."community_question" add constraint "community_question_course_id_fkey" FOREIGN KEY (course_id) REFERENCES course(id) not valid;
|
||||
|
||||
alter table "public"."community_question" validate constraint "community_question_course_id_fkey";
|
||||
+1
-1
@@ -496,7 +496,7 @@ INSERT INTO "public"."question_answer" ("id", "answers", "question_id", "open_an
|
||||
--
|
||||
|
||||
INSERT INTO "storage"."buckets" ("id", "name", "owner", "created_at", "updated_at", "public", "avif_autodetection", "file_size_limit", "allowed_mime_types", "owner_id") VALUES
|
||||
('avatars', 'avatars', true, '2023-11-22 09:29:04.533114+00', '2023-11-22 09:29:04.533114+00', true, false, NULL, NULL, NULL);
|
||||
('avatars', 'avatars', NULL, '2023-11-22 09:29:04.533114+00', '2023-11-22 09:29:04.533114+00', true, false, NULL, NULL, NULL);
|
||||
|
||||
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user