Skip to content

Commit

Permalink
Fix insert_hashes trigger migration (Fixes issue #846)
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIII committed Jan 18, 2019
1 parent 0e95cf3 commit 6fe873c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
2019-01-18 DariusIII
* Fix: Fix insert_hashes trigger migration (Fixes issue #846)
* Chg: Update fixtures:up and :down commands to accept optional parameters
* Chg: Use badge-info for badges on games page
2019-01-17 DariusIII
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function up()
return 'INSERT INTO predb_hashes (hash, predb_id) VALUES (UNHEX(MD5(NEW.title)), NEW.id), (UNHEX(MD5(MD5(NEW.title))), NEW.id), (UNHEX(SHA1(NEW.title)), NEW.id), (UNHEX(SHA2(NEW.title, 256)), NEW.id), (UNHEX(MD5(CONCAT(NEW.title, NEW.requestid))), NEW.id), (UNHEX(MD5(CONCAT(NEW.title, NEW.requestid, NEW.requestid))), NEW.id);';
})
->after()
->update();
->insert();
}

/**
Expand Down

0 comments on commit 6fe873c

Please sign in to comment.