Всем доброго дня. Готовлюсь к миграции БД с мускула на постгре
Перегоняю данные через pgloader. После переноса данных ошибок нет, но выдает знак вопроса. Нагуглить ошибку не вышло

Закидываю в базу из schema все констракты и индексы, но все проходит гладко кроме:
ERROR: insert or update on table "alerts" violates foreign key constraint "c_alerts_1"
DETAIL: Key (actionid)=(23) is not present in table "actions".
ERROR: insert or update on table "alerts" violates foreign key constraint "c_alerts_2"
DETAIL: Key (eventid)=(1510) is not present in table "events".
ERROR: insert or update on table "alerts" violates foreign key constraint "c_alerts_3"
DETAIL: Key (userid)=(29) is not present in table "users".
ERROR: insert or update on table "alerts" violates foreign key constraint "c_alerts_4"
DETAIL: Key (mediatypeid)=(6) is not present in table "media_type".
ALTER TABLE
ALTER TABLE
ERROR: insert or update on table "acknowledges" violates foreign key constraint "c_acknowledges_1"
DETAIL: Key (userid)=(76) is not present in table "users".
ERROR: insert or update on table "acknowledges" violates foreign key constraint "c_acknowledges_2"
DETAIL: Key (eventid)=(1774) is not present in table "events".
ERROR: insert or update on table "auditlog" violates foreign key constraint "c_auditlog_1"
DETAIL: Key (userid)=(76) is not present in table "users".
ERROR: insert or update on table "auditlog_details" violates foreign key constraint "c_auditlog_details_1"
DETAIL: Key (auditid)=(7558) is not present in table "auditlog".
ERROR: insert or update on table "service_alarms" violates foreign key constraint "c_service_alarms_1"
DETAIL: Key (serviceid)=(7) is not present in table "services".
Я так понимаю это изначально было какие то внешние ключи, которые только руками теперь править ?
Кто подскажет как пофиксить ?
Перенос делал по статье https://habr.com/ru/company/zabbix/blog/518546/
Zabbix v 5.0.2
Пробовал обновлять до версий 5.2, 5.4 апгрейды базы проходил без проблем
Перегоняю данные через pgloader. После переноса данных ошибок нет, но выдает знак вопроса. Нагуглить ошибку не вышло
Закидываю в базу из schema все констракты и индексы, но все проходит гладко кроме:
ERROR: insert or update on table "alerts" violates foreign key constraint "c_alerts_1"
DETAIL: Key (actionid)=(23) is not present in table "actions".
ERROR: insert or update on table "alerts" violates foreign key constraint "c_alerts_2"
DETAIL: Key (eventid)=(1510) is not present in table "events".
ERROR: insert or update on table "alerts" violates foreign key constraint "c_alerts_3"
DETAIL: Key (userid)=(29) is not present in table "users".
ERROR: insert or update on table "alerts" violates foreign key constraint "c_alerts_4"
DETAIL: Key (mediatypeid)=(6) is not present in table "media_type".
ALTER TABLE
ALTER TABLE
ERROR: insert or update on table "acknowledges" violates foreign key constraint "c_acknowledges_1"
DETAIL: Key (userid)=(76) is not present in table "users".
ERROR: insert or update on table "acknowledges" violates foreign key constraint "c_acknowledges_2"
DETAIL: Key (eventid)=(1774) is not present in table "events".
ERROR: insert or update on table "auditlog" violates foreign key constraint "c_auditlog_1"
DETAIL: Key (userid)=(76) is not present in table "users".
ERROR: insert or update on table "auditlog_details" violates foreign key constraint "c_auditlog_details_1"
DETAIL: Key (auditid)=(7558) is not present in table "auditlog".
ERROR: insert or update on table "service_alarms" violates foreign key constraint "c_service_alarms_1"
DETAIL: Key (serviceid)=(7) is not present in table "services".
Я так понимаю это изначально было какие то внешние ключи, которые только руками теперь править ?
Кто подскажет как пофиксить ?
Перенос делал по статье https://habr.com/ru/company/zabbix/blog/518546/
Zabbix v 5.0.2
Пробовал обновлять до версий 5.2, 5.4 апгрейды базы проходил без проблем