Witajcie,
Wyexportowałem bazę danych z poziomu phpstorm do pliku: https://pastebin.com/gcWtUz0k
Bazy pochodzą z projektu napisanego w Laravelu.
Kiedy próbuję zaimportować ją na moim hostingu, za pomocą phpmyadmin otrzymuję taki błąd
create table index_galleries
(
id bigint unsigned auto_increment
primary key,
category_id mediumint unsigned not null,
photo_id bigint unsigned not null,
number smallint default 0 not null,
description varchar(250) null,
enable char default '0' not null,
constraint index_galleries_category_id_foreign
foreign key (category_id) references gallery_categories (id)
on delete cascade,
constraint index_galleries_photo_id_foreign
foreign key (photo_id) references photos (id)
)
collate = utf8mb4_unicode_ci
#1215 - Cannot add foreign key constraint
Co jest nie tak? Jak można to naprawić?