diff --git a/migration/19.12/migrateVersionAttachments.php b/migration/19.12/migrateVersionAttachments.php
index 61aa0a3ebccc505785ee449fd275b1dcbf358bd3..234c7239c4c469202199170cd28412580622e601 100644
--- a/migration/19.12/migrateVersionAttachments.php
+++ b/migration/19.12/migrateVersionAttachments.php
@@ -33,6 +33,27 @@ foreach ($customs as $custom) {
         $attachmentInfo['in_signature_book'] = empty($attachmentInfo['in_signature_book']) ?  'false' : 'true';
         $attachmentInfo['in_send_attach']    = empty($attachmentInfo['in_send_attach']) ?  'false' : 'true';
         $attachmentInfo['format']            = empty($attachmentInfo['format']) ?  pathinfo($attachmentInfo['filename'], PATHINFO_EXTENSION) : $attachmentInfo['format'];
+        if (empty($attachmentInfo['fingerprint'])) {
+            $docserver = \SrcCore\models\DatabaseModel::select([
+                'select' => ['path_template', 'docserver_type_id'],
+                'table'  => ['docservers'],
+                'where'  => ['docserver_id = ?'],
+                'data'   => [$attachmentInfo['docserver_id']]
+            ]);
+            $docserverType = \SrcCore\models\DatabaseModel::select([
+                'select' => ['fingerprint_mode'],
+                'table'  => ['docserver_types'],
+                'where'  => ['docserver_type_id = ?'],
+                'data'   => [$docserver[0]['docserver_type_id']]
+            ]);
+            $pathToDocument = $docserver[0]['path_template'] . str_replace('#', DIRECTORY_SEPARATOR, $attachmentInfo['path']) . $attachmentInfo['filename'];
+            if (file_exists($pathToDocument)) {
+                $fingerprint = \Resource\controllers\StoreController::getFingerPrint(['filePath' => $pathToDocument, 'mode' => $docserverType[0]['fingerprint_mode']]);
+                $attachmentInfo['fingerprint'] = $fingerprint;
+            } else {
+                $attachmentInfo['fingerprint'] = 1;
+            }
+        }
 
         $newResId = \Attachment\models\AttachmentModel::create($attachmentInfo);
 
diff --git a/src/app/resource/controllers/StoreController.php b/src/app/resource/controllers/StoreController.php
index a1e80cc7992cac9aa432f3426d0e0629fb604cd8..d17b51e6d7885bc19648a77e6b0f54248124a1b2 100755
--- a/src/app/resource/controllers/StoreController.php
+++ b/src/app/resource/controllers/StoreController.php
@@ -24,7 +24,6 @@ use SrcCore\models\DatabaseModel;
 use SrcCore\models\ValidatorModel;
 use Resource\models\ResModel;
 use SrcCore\models\CoreConfigModel;
-use User\models\UserModel;
 
 class StoreController
 {