fixing false constraint name

This commit is contained in:
Dita Aji Pratama 2025-07-02 15:32:09 +07:00
parent 23be0b74f9
commit 39ca30c293

View File

@ -43,7 +43,7 @@ create table if not exists `highlight_<item>` (
foreign key (`<fk>`) references `<table>` (`<pk>`)
on update cascade
on delete cascade,
constraint `highlight_videdu_fk_category`
constraint `highlight_<item>_fk_category`
foreign key (`category`) references `highlight_category` (`id`)
on update cascade
on delete cascade
@ -65,7 +65,7 @@ create table if not exists `highlight_catalog` (
foreign key (`item`) references `catalog_item` (`id`)
on update cascade
on delete cascade,
constraint `highlight_videdu_fk_category`
constraint `highlight_catalog_fk_category`
foreign key (`category`) references `highlight_category` (`id`)
on update cascade
on delete cascade