issues
search
ices-eg
/
wg_WGEEL
Joint EIFAAC/ICES/GFCM Working Group on Eels
http://ices.dk/community/groups/Pages/WGEEL.aspx
5
stars
12
forks
source link
Critical check these two lines in the db cannot restore with those
#257
Closed
cedricbriandgithub
closed
1 year ago
cedricbriandgithub
commented
1 year ago
DÉTAIL : La ligne en échec contient (408546, 11, 2015, 750000, IT_total, IT, Y, F, null, 1, Value updated from SIPAM GFCM, null, 2022-08-29, null, dc_2018, Public). CONTEXTE : COPY t_eelstock_eel, ligne 147 : « 408546 11 2015 750000 IT_total IT Y F \N 1 Value updated from SIPAM GFCM \N 2022-08-29 \N dc_2018 Pu... » pg_restore: de l'entrée TOC 4447 ; 2606 5515293 FK CONSTRAINT t_eelstock_eel_percent t_eelstock_eel_percent_percent_id_fkey wgeel pg_restore: erreur : could not execute query: ERREUR: une instruction insert ou update sur la table « t_eelstock_eel_percent » viole la contrainte de clé étrangère « t_eelstock_eel_percent_percent_id_fkey » DÉTAIL : La clé (percent_id)=(513110) n'est pas présente dans la table « t_eelstock_eel ». La commande était : ALTER TABLE ONLY datawg.t_eelstock_eel_percent ADD CONSTRAINT t_eelstock_eel_percent_percent_id_fkey FOREIGN KEY (percent_id) REFERENCES datawg.t_eelstock_eel(eel_id) ON DELETE CASCADE;