Don't allow multiple downvotes on one submission

This commit is contained in:
Ajay
2024-11-10 15:21:40 -05:00
parent 405805ff89
commit b2981fe782
3 changed files with 63 additions and 36 deletions

View File

@@ -102,7 +102,9 @@ export class Sqlite implements IDatabase {
}
private static processUpgradeQuery(query: string): string {
return query.replace(/^.*--!sqlite-ignore/gm, "");
return query
.replace(/SERIAL PRIMARY KEY/gi, "INTEGER PRIMARY KEY AUTOINCREMENT")
.replace(/^.*--!sqlite-ignore/gm, "");
}
highLoad() {