diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-08-30 17:46:23 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-08-30 17:46:23 -0400 |
commit | e276b9bfaf5795ed9e5ec4896fc9d2678ff8e51c (patch) | |
tree | 64ecbe963d5fc8e7356729572a25213951b29b0e /src/db.rs | |
parent | ebc4efa5d0cc8bf552d528baa5b4e68956aea764 (diff) | |
download | clinte-e276b9bfaf5795ed9e5ec4896fc9d2678ff8e51c.tar.gz |
ensure submitted posts are utf8
Diffstat (limited to 'src/db.rs')
-rw-r--r-- | src/db.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db.rs b/src/db.rs index 07655c5..b79a789 100644 --- a/src/db.rs +++ b/src/db.rs @@ -31,7 +31,7 @@ impl Conn { conn.execute( "CREATE TABLE IF NOT EXISTS posts ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + id INTEGER PRIMARY KEY NOT NULL, title TEXT NOT NULL, author TEXT NOT NULL, body TEXT NOT NULL |