feat: separate trails and formations in cms
All checks were successful
CI / Validate frontend and API (push) Successful in 41s
CI / Build and publish Docker images (push) Successful in 25s

This commit is contained in:
Cauê Faleiros
2026-09-04 16:32:54 -03:00
parent 79d1c70c44
commit 09d85a7123
6 changed files with 35 additions and 13 deletions

View File

@@ -0,0 +1,8 @@
-- 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);