Allows to redirect other domains than the site’s main domain to specific courses. For example, For example https://example-course.mooc.fi could redirect one to https://courses.mooc.fi/org/uh-cs/courses/example-course.
Name | Type | Default | Nullable | Children | Parents | Comment |
---|---|---|---|---|---|---|
course_id | uuid | false | public.courses | The course where the redirection is going. | ||
created_at | timestamp with time zone | now() | false | Timestamp when the record was created. | ||
deleted_at | timestamp with time zone | true | Timestamp when the record was deleted. If null, the record is not deleted. | |||
domain | varchar(255) | false | Domain that is redirected, for example “example-course.mooc.fi”. Has to be just the domain, cannot contain the protocol or the path. | |||
id | uuid | uuid_generate_v4() | false | A unique, stable identifier for the record. | ||
updated_at | timestamp with time zone | now() | false | Timestamp when the record was last updated. The field is updated automatically by the set_timestamp trigger. |
Name | Type | Definition |
---|---|---|
other_domain_to_course_redirections_course_id_fkey | FOREIGN KEY | FOREIGN KEY (course_id) REFERENCES courses(id) |
other_domain_to_course_redirections_domain_check | CHECK | CHECK ((((domain)::text ~~ ‘%.%’::text) AND ((domain)::text !~~ ‘%/%’::text) AND ((domain)::text !~~ ‘% %’::text))) |
other_domain_to_course_redirections_pkey | PRIMARY KEY | PRIMARY KEY (id) |
Name | Definition |
---|---|
other_domain_to_course_redirections_pkey | CREATE UNIQUE INDEX other_domain_to_course_redirections_pkey ON public.other_domain_to_course_redirections USING btree (id) |
Name | Definition |
---|---|
set_timestamp | CREATE TRIGGER set_timestamp BEFORE UPDATE ON public.other_domain_to_course_redirections FOR EACH ROW EXECUTE FUNCTION trigger_set_timestamp() |
Generated by tbls