aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-10-24 17:23:09 -0700
committerFuwn <[email protected]>2023-10-24 17:23:09 -0700
commitab00423409358eace0aa66017bfb252cdf680fd5 (patch)
treee81298f8058c3ad1ac6648f8f9b7296b2ab57c95 /src/lib
parentmerge: branch badges into main (diff)
downloaddue.moe-ab00423409358eace0aa66017bfb252cdf680fd5.tar.xz
due.moe-ab00423409358eace0aa66017bfb252cdf680fd5.zip
feat(badges): add safe limits
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/userBadgesDatabase.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/userBadgesDatabase.ts b/src/lib/userBadgesDatabase.ts
index c129770e..ae1b1176 100644
--- a/src/lib/userBadgesDatabase.ts
+++ b/src/lib/userBadgesDatabase.ts
@@ -15,9 +15,9 @@ const database = new Database('./due_moe.sqlite3', {
database.exec(`create table if not exists user_badges (
id integer primary key,
user_id integer not null,
- post text not null,
- image text not null,
- description text default null,
+ post text(1000) not null,
+ image text(1000) not null,
+ description text(1000) default null,
time timestamp default current_timestamp
)`);