mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-07 03:57:06 +03:00
Fix hashing function
This commit is contained in:
@@ -136,7 +136,7 @@ export class Postgres implements IDatabase {
|
|||||||
|
|
||||||
private processUpgradeQuery(query: string): string {
|
private processUpgradeQuery(query: string): string {
|
||||||
let result = query;
|
let result = query;
|
||||||
result = result.replace(/sha256\((.*?)\)/gm, "digest($1, 'sha256')");
|
result = result.replace(/sha256\((.*?)\)/gm, "encode(digest($1, 'sha256'), 'hex')");
|
||||||
result = result.replace(/integer/gmi, "NUMERIC");
|
result = result.replace(/integer/gmi, "NUMERIC");
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user