Explorar o código

add a 2nd player, add abott mini expansion

George C. Privon %!s(int64=8) %!d(string=hai) anos
pai
achega
d284bf360a
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      create_database.py

+ 9 - 0
create_database.py

@@ -29,6 +29,8 @@ c.execute('''CREATE TABLE players (playerID INTEGER PRIMARY KEY AUTOINCREMENT NO
 # player names
 c.execute('''INSERT INTO players values (0,
                                          "John Smith")''')
+c.execute('''INSERT INTO players values (1,
+                                         "Jane Doe")''')
 
 # games table
 # gameID - unique ID
@@ -173,6 +175,13 @@ c.execute('''INSERT INTO expansions values(101,
                                            "",
                                            12,
                                            "")''')
+c.execute('''INSERT INTO expansions values(102,
+                                           "The Abbott",
+                                           1,
+                                           1,
+                                           "Abbott",
+                                           0,
+                                           "")''')
 
 conn.commit()
 conn.close()