diff options
Diffstat (limited to 'src/database')
-rw-r--r-- | src/database/posts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database/posts.rs b/src/database/posts.rs index 77d2387..96cd18a 100644 --- a/src/database/posts.rs +++ b/src/database/posts.rs @@ -11,7 +11,7 @@ pub fn init() -> Result<(), rusqlite::Error> { CREATE TABLE IF NOT EXISTS posts ( post_id INTEGER PRIMARY KEY AUTOINCREMENT, user_id INTEGER NOT NULL, - content TEXT NOT NULL, + content VARCHAR(500) NOT NULL, likes TEXT NOT NULL, comments TEXT NOT NULL, date INTEGER NOT NULL, |