diff --git a/webapp/migrations/Version20210407120356.php b/webapp/migrations/Version20210407120356.php index 5760135e4d..1518eb84ec 100644 --- a/webapp/migrations/Version20210407120356.php +++ b/webapp/migrations/Version20210407120356.php @@ -51,8 +51,8 @@ public function up(Schema $schema) : void $executableBit = '0'; } $this->connection->executeStatement( - 'INSERT INTO executable_file (`immutable_execid`, `filename`, `ranknumber`, `file_content`, `is_executable`) VALUES (?, ?, ?, ?, ?)', - [$immutable_execid, $filename, $idx, $content, $executableBit] + 'INSERT INTO executable_file (`immutable_execid`, `filename`, `ranknumber`, `file_content`, `hash`, `is_executable`) VALUES (?, ?, ?, ?, ?)', + [$immutable_execid, $filename, $idx, $content, $md5($content), $executableBit] ); }