forked from waifu/kemoverse
expanding character_stats
This commit is contained in:
parent
3b7f2006ef
commit
9d98299264
1 changed files with 2 additions and 2 deletions
4
db.py
4
db.py
|
@ -44,8 +44,8 @@ cursor.execute("""
|
||||||
cursor.execute('''
|
cursor.execute('''
|
||||||
CREATE TABLE IF NOT EXISTS character_stats (
|
CREATE TABLE IF NOT EXISTS character_stats (
|
||||||
character_id INTEGER PRIMARY KEY,
|
character_id INTEGER PRIMARY KEY,
|
||||||
power INTEGER NOT NULL,
|
power INTEGER NOT NULL DEFAULT abs(random() % 9999),
|
||||||
charm INTEGER NOT NULL,
|
charm INTEGER NOT NULL DEFAULT abs(random() % 9999),,
|
||||||
FOREIGN KEY(character_id) REFERENCES characters(id)
|
FOREIGN KEY(character_id) REFERENCES characters(id)
|
||||||
)
|
)
|
||||||
''')
|
''')
|
||||||
|
|
Loading…
Add table
Reference in a new issue