2022-12-26 17:07:23 +00:00
|
|
|
import sqlite3
|
|
|
|
|
|
|
|
|
|
|
|
def create_tribe_table(conn) -> None:
|
|
|
|
cursor = conn.cursor()
|
|
|
|
cursor.execute(
|
|
|
|
"""
|
|
|
|
CREATE TABLE IF NOT EXISTS tribes(
|
2022-12-26 18:21:00 +00:00
|
|
|
name VARCHAR PRIMARY KEY UNIQUE,
|
|
|
|
level VARCHAR
|
2022-12-26 17:07:23 +00:00
|
|
|
)
|
|
|
|
"""
|
|
|
|
)
|
|
|
|
conn.commit()
|
|
|
|
|
|
|
|
|
|
|
|
def create_db(conn) -> None:
|
|
|
|
create_tribe_table(conn)
|