From 917bf258d940657a05dc2b3914d90dc198f346ad Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Sun, 10 Sep 2023 13:48:23 +0300 Subject: [PATCH] Fixup gen-database.py --- testing/gen-database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/gen-database.py b/testing/gen-database.py index ee32f42cd..53cc7c44c 100755 --- a/testing/gen-database.py +++ b/testing/gen-database.py @@ -8,7 +8,7 @@ cursor = conn.cursor() # Create the user table cursor.execute(''' - CREATE TABLE IF NOT EXISTS user ( + CREATE TABLE IF NOT EXISTS users ( id INTEGER PRIMARY KEY, first_name TEXT, last_name TEXT, @@ -33,7 +33,7 @@ for _ in range(10000): zipcode = fake.zipcode() cursor.execute(''' - INSERT INTO user (first_name, last_name, email, phone_number, address, city, state, zipcode) + INSERT INTO users (first_name, last_name, email, phone_number, address, city, state, zipcode) VALUES (?, ?, ?, ?, ?, ?, ?, ?) ''', (first_name, last_name, email, phone_number, address, city, state, zipcode))