diff --git a/migration/19.12/migrate.sh b/migration/19.12/migrate.sh
index 1d82adc5576a5046270a479853ed1fc070f73596..a60ab5a74d1895845f873319bef1886391ea9424 100755
--- a/migration/19.12/migrate.sh
+++ b/migration/19.12/migrate.sh
@@ -23,3 +23,4 @@ php ./migrateCustomValues.php
 php ./migrateVersionAttachments.php
 php ./migrateContacts.php
 php ./migrateTemplates.php
+php ./migrateLinkedResources.php
diff --git a/migration/19.12/migrateLinkedResources.php b/migration/19.12/migrateLinkedResources.php
new file mode 100644
index 0000000000000000000000000000000000000000..b7cb0d4206b3ada0ad2650e71cfcf8dda96950cb
--- /dev/null
+++ b/migration/19.12/migrateLinkedResources.php
@@ -0,0 +1,44 @@
+<?php
+
+use Resource\models\ResModel;
+
+require '../../vendor/autoload.php';
+
+chdir('../..');
+
+$customs = scandir('custom');
+
+foreach ($customs as $custom) {
+    if ($custom == 'custom.xml' || $custom == '.' || $custom == '..') {
+        continue;
+    }
+
+    \SrcCore\models\DatabasePDO::reset();
+    new \SrcCore\models\DatabasePDO(['customId' => $custom]);
+
+    $migrated = 0;
+
+    $links = \SrcCore\models\DatabaseModel::select([
+        'select' => ['res_parent', 'res_child'],
+        'table'  => ['res_linked']
+    ]);
+
+    foreach ($links as $link) {
+        $resParent = (string)$link['res_parent'];
+        $resChild = (string)$link['res_child'];
+
+        ResModel::update([
+            'postSet' => ['linked_resources' => "jsonb_insert(linked_resources, '{0}', '\"{$resChild}\"')"],
+            'where'   => ['res_id = ?', "(linked_resources @> ?) = false"],
+            'data'    => [(int)$resParent, "\"{$resChild}\""]
+        ]);
+        ResModel::update([
+            'postSet' => ['linked_resources' => "jsonb_insert(linked_resources, '{0}', '\"{$resParent}\"')"],
+            'where'   => ['res_id = ?', "(linked_resources @> ?) = false"],
+            'data'    => [(int)$resChild, "\"{$resParent}\""]
+        ]);
+        $migrated++;
+    }
+
+    printf("Migration des liaisons dans res_letterbox (CUSTOM {$custom}) : " . $migrated . " liaisons migrés.\n");
+}