summaryrefslogtreecommitdiff
path: root/src/database
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/database/chat.rs2
-rw-r--r--src/database/comments.rs2
-rw-r--r--src/database/posts.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/database/chat.rs b/src/database/chat.rs
index 99ec86c..87b7154 100644
--- a/src/database/chat.rs
+++ b/src/database/chat.rs
@@ -35,7 +35,7 @@ impl Database {
user_id INTEGER NOT NULL,
room_id INTEGER NOT NULL,
date INTEGER NOT NULL,
- content VARCHAR(500) NOT NULL,
+ content VARCHAR(5000) NOT NULL,
FOREIGN KEY(user_id) REFERENCES users(user_id),
FOREIGN KEY(room_id) REFERENCES chat_rooms(room_id)
);
diff --git a/src/database/comments.rs b/src/database/comments.rs
index 5a1b39d..6faebfb 100644
--- a/src/database/comments.rs
+++ b/src/database/comments.rs
@@ -15,7 +15,7 @@ impl Database {
user_id INTEGER NOT NULL,
post_id INTEGER NOT NULL,
date INTEGER NOT NULL,
- content VARCHAR(255) NOT NULL,
+ content VARCHAR(2000) NOT NULL,
FOREIGN KEY(user_id) REFERENCES users(user_id),
FOREIGN KEY(post_id) REFERENCES posts(post_id)
);
diff --git a/src/database/posts.rs b/src/database/posts.rs
index fa0fd3c..832fa7c 100644
--- a/src/database/posts.rs
+++ b/src/database/posts.rs
@@ -13,7 +13,7 @@ impl Database {
CREATE TABLE IF NOT EXISTS posts (
post_id INTEGER PRIMARY KEY AUTOINCREMENT,
user_id INTEGER NOT NULL,
- content VARCHAR(500) NOT NULL,
+ content VARCHAR(5000) NOT NULL,
date INTEGER NOT NULL,
FOREIGN KEY(user_id) REFERENCES users(user_id)
);