Files
compor-academy/server/migrations/010_learning_path_kind.sql
Cauê Faleiros 09d85a7123
All checks were successful
CI / Validate frontend and API (push) Successful in 41s
CI / Build and publish Docker images (push) Successful in 25s
feat: separate trails and formations in cms
2026-09-04 16:32:54 -03:00

9 lines
397 B
SQL

-- Both content types are intentionally composed from existing courses. The
-- distinction is editorial: a "trilha" is a guided sequence and a
-- "formação" is a broader curriculum collection.
alter table learning_paths
add column kind text not null default 'trail'
check (kind in ('trail', 'formation'));
create index learning_paths_kind_index on learning_paths (kind, published_at desc);