Files
compor-academy/server/migrations/008_course_cover_position.sql
Cauê Faleiros 7a01be2b59
All checks were successful
CI / Validate frontend and API (push) Successful in 37s
CI / Build and publish Docker images (push) Successful in 18s
feat: add course cover positioning
2026-09-04 14:42:04 -03:00

6 lines
292 B
SQL

alter table courses
add column cover_image_position_x real not null default 50
check (cover_image_position_x >= 0 and cover_image_position_x <= 100),
add column cover_image_position_y real not null default 50
check (cover_image_position_y >= 0 and cover_image_position_y <= 100);