From 5a45034d9bda042f01f895ad7e451be4aac5ef06 Mon Sep 17 00:00:00 2001 From: FrederikBaerentsen Date: Thu, 18 Apr 2024 20:08:04 +0200 Subject: [PATCH] Updated database structure --- database.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/database.py b/database.py index f89fbd9..5044be5 100644 --- a/database.py +++ b/database.py @@ -28,10 +28,10 @@ if len(sys.argv) > 1: -# cursor.execute('''DROP TABLE sets''') -# cursor.execute('''DROP TABLE inventory''') -# cursor.execute('''DROP TABLE minifigures''') -# cursor.execute('''DROP TABLE missing''') +cursor.execute('''DROP TABLE sets''') +cursor.execute('''DROP TABLE inventory''') +cursor.execute('''DROP TABLE minifigures''') +cursor.execute('''DROP TABLE missing''') cursor.execute('''CREATE TABLE IF NOT EXISTS sets ( set_num TEXT, @@ -42,6 +42,9 @@ cursor.execute('''CREATE TABLE IF NOT EXISTS sets ( set_img_url TEXT, set_url TEXT, last_modified_dt TEXT, + mini_col BOOLEAN, + set_check BOOLEAN, + set_col, BOOLEAN, u_id TEXT )''')