From 92c6bea0fbd55ac43d9440ea413be6028e44647c Mon Sep 17 00:00:00 2001 From: posweg Date: Thu, 21 May 2020 20:21:44 +0000 Subject: [PATCH] =?UTF-8?q?Add=20AUTOINCREMENT=20to=20primary=20keys=20?= =?UTF-8?q?=C3=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/header.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/header.php b/include/header.php index 38b221a..1f47a35 100644 --- a/include/header.php +++ b/include/header.php @@ -5,7 +5,7 @@ session_start(); $db = new SQLite3('ask.db'); $users_table = $db->query("CREATE TABLE IF NOT EXISTS users( - id INTEGER PRIMARY KEY, + id INTEGER PRIMARY KEY AUTOINCREMENT, username TEXT, shadow TEXT, name TEXT, @@ -13,7 +13,7 @@ $users_table = $db->query("CREATE TABLE IF NOT EXISTS users( )"); $db->exec("CREATE TABLE IF NOT EXISTS questions( - id INTEGER PRIMARY KEY, + id INTEGER PRIMARY KEY AUTOINCREMENT, user INTEGER, by INTEGER, question TEXT,