Skip to content

Commit

Permalink
Show link by default on all video blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
owi92 committed Sep 12, 2023
1 parent fdcaa1b commit 67d939a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/db/migrations/23-video-block-show-link.sql
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
-- Adds a single `show_link` field to blocks, used for video blocks to also show
-- a link to the corresponding video page. We also drop and re-add the appropriate constraint.
alter table blocks
add column show_link boolean default false,
add column show_link boolean default true,
drop constraint video_block_has_fields,
add constraint video_block_has_fields check (type <> 'video' or (
show_title is not null and
show_link is not null
));

0 comments on commit 67d939a

Please sign in to comment.