mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Fix hashing function
This commit is contained in:
@@ -136,7 +136,7 @@ export class Postgres implements IDatabase {
|
||||
|
||||
private processUpgradeQuery(query: string): string {
|
||||
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");
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user