Skip to content

Commit 30b2606

Browse files
committed
fix hash problem
1 parent 1ecc85a commit 30b2606

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webapp/migrations/Version20210407120356.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ public function up(Schema $schema) : void
5454

5555
$this->connection->executeStatement(
5656
'INSERT INTO executable_file '
57-
. '(`immutable_execid`, `filename`, `ranknumber`, `file_content`, `is_executable`) '
57+
. '(`immutable_execid`, `filename`, `ranknumber`, `file_content`, `is_executable`, `hash`) '
5858
. 'VALUES (' . $immutable_execid . ', "' . $filename . '", '
5959
. $idx . ', ' . $encodedContent . ', '
60-
. $executableBit . ')'
60+
. $executableBit . ', "' . md5($content) . '")'
6161
);
6262
}
6363

0 commit comments

Comments
 (0)