HI Rafael,
To fix it, run the following in psql:
dotlrn=# alter table lorsm_custom_pages drop constraint lors_st_end_pgs_man_id_pk;
dotlrn=# alter table lorsm_custom_pages add constraint lcp_man_id_type_pk primary key (man_id, type);
it will fix the error but I don't know if when running the course the start and end pages will be shown or not.