diff --git a/modules/sqlite_helpers.py b/modules/sqlite_helpers.py index d44b1ff..53699af 100644 --- a/modules/sqlite_helpers.py +++ b/modules/sqlite_helpers.py @@ -13,6 +13,15 @@ def maybe_create_table(sqlite_file: str) -> bool: db = sqlite3.connect(sqlite_file) cursor = db.cursor() +#new paste table +cursor.execute(""" + CREATE TABLE IF NOT EXISTS pastes ( + alias TEXT PRIMARY KEY, + title TEXT, + content TEXT NOT NULL + ) +""") + try: create_table_query = """ CREATE TABLE IF NOT EXISTS urls (