Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski authored Oct 28, 2024
1 parent c27c4fc commit c9f8bf7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions pyhockeystats/hockeydatabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,7 @@ def MakeHockeyLeagueTable(sqldatacon, droptable=True):
if (droptable):
sqldatacon[0].execute("DROP TABLE IF EXISTS HockeyLeagues")
sqldatacon[0].execute("CREATE TABLE HockeyLeagues (\n" +
" id INTEGER PRIMARY KEY AUTOINCREMENT,\n" +
" id INTEGER PRIMARY KEY,\n" +
" LeagueName TEXT NOT NULL DEFAULT '',\n" +
" LeagueFullName TEXT NOT NULL DEFAULT '',\n" +
" CountryName TEXT NOT NULL DEFAULT '',\n" +
Expand Down Expand Up @@ -1493,7 +1493,7 @@ def MakeHockeyConferenceTable(sqldatacon, leaguename, droptable=True):
if (droptable):
sqldatacon[0].execute("DROP TABLE IF EXISTS "+leaguename+"Conferences")
sqldatacon[0].execute("CREATE TABLE "+leaguename+"Conferences (\n" +
" id INTEGER PRIMARY KEY AUTOINCREMENT,\n" +
" id INTEGER PRIMARY KEY,\n" +
" Conference TEXT NOT NULL DEFAULT '',\n" +
" ConferencePrefix TEXT NOT NULL DEFAULT '',\n" +
" ConferenceSuffix TEXT NOT NULL DEFAULT '',\n" +
Expand Down Expand Up @@ -1655,7 +1655,7 @@ def MakeHockeyDivisionTable(sqldatacon, leaguename, droptable=True):
if (droptable):
sqldatacon[0].execute("DROP TABLE IF EXISTS "+leaguename+"Divisions")
sqldatacon[0].execute("CREATE TABLE "+leaguename+"Divisions (\n" +
" id INTEGER PRIMARY KEY AUTOINCREMENT,\n" +
" id INTEGER PRIMARY KEY,\n" +
" Division TEXT NOT NULL DEFAULT '',\n" +
" DivisionPrefix TEXT NOT NULL DEFAULT '',\n" +
" DivisionSuffix TEXT NOT NULL DEFAULT '',\n" +
Expand Down Expand Up @@ -1874,7 +1874,7 @@ def MakeHockeyTeamTable(sqldatacon, leaguename, droptable=True):
if (droptable):
sqldatacon[0].execute("DROP TABLE IF EXISTS "+leaguename+"Arenas")
sqldatacon[0].execute("CREATE TABLE "+leaguename+"Arenas (\n" +
" id INTEGER PRIMARY KEY AUTOINCREMENT,\n" +
" id INTEGER PRIMARY KEY,\n" +
" TeamID INTEGER NOT NULL DEFAULT 0,\n" +
" TeamName TEXT NOT NULL DEFAULT '',\n" +
" TeamFullName TEXT NOT NULL DEFAULT '',\n" +
Expand All @@ -1892,7 +1892,7 @@ def MakeHockeyTeamTable(sqldatacon, leaguename, droptable=True):
if (droptable):
sqldatacon[0].execute("DROP TABLE IF EXISTS "+leaguename+"Teams")
sqldatacon[0].execute("CREATE TABLE "+leaguename+"Teams (\n" +
" id INTEGER PRIMARY KEY AUTOINCREMENT,\n" +
" id INTEGER PRIMARY KEY,\n" +
" Date INTEGER NOT NULL DEFAULT 0,\n" +
" Time INTEGER NOT NULL DEFAULT 0,\n" +
" DateTime INTEGER NOT NULL DEFAULT 0,\n" +
Expand Down Expand Up @@ -1975,7 +1975,7 @@ def MakeHockeyTeamTable(sqldatacon, leaguename, droptable=True):
if (droptable):
sqldatacon[0].execute("DROP TABLE IF EXISTS "+leaguename+"Stats")
sqldatacon[0].execute("CREATE TABLE "+leaguename+"Stats (\n" +
" id INTEGER PRIMARY KEY AUTOINCREMENT,\n" +
" id INTEGER PRIMARY KEY,\n" +
" TeamID INTEGER NOT NULL DEFAULT 0,\n" +
" Date INTEGER NOT NULL DEFAULT 0,\n" +
" Time INTEGER NOT NULL DEFAULT 0,\n" +
Expand Down Expand Up @@ -2059,7 +2059,7 @@ def MakeHockeyTeamTable(sqldatacon, leaguename, droptable=True):
if (droptable):
sqldatacon[0].execute("DROP TABLE IF EXISTS "+leaguename+"GameStats")
sqldatacon[0].execute("CREATE TABLE "+leaguename+"GameStats (\n" +
" id INTEGER PRIMARY KEY AUTOINCREMENT,\n" +
" id INTEGER PRIMARY KEY,\n" +
" GameID INTEGER NOT NULL DEFAULT 0,\n" +
" TeamID INTEGER NOT NULL DEFAULT 0,\n" +
" Date INTEGER NOT NULL DEFAULT 0,\n" +
Expand Down Expand Up @@ -2158,7 +2158,7 @@ def MakeHockeyPlayoffTeamTable(sqldatacon, leaguename, droptable=True):
sqldatacon[0].execute("DROP TABLE IF EXISTS " +
leaguename+"PlayoffTeams")
sqldatacon[0].execute("CREATE TABLE "+leaguename+"PlayoffTeams (\n" +
" id INTEGER PRIMARY KEY AUTOINCREMENT,\n" +
" id INTEGER PRIMARY KEY,\n" +
" TeamID INTEGER NOT NULL DEFAULT 0,\n" +
" Date INTEGER NOT NULL DEFAULT 0,\n" +
" Time INTEGER NOT NULL DEFAULT 0,\n" +
Expand Down Expand Up @@ -2463,7 +2463,7 @@ def MakeHockeyGameTable(sqldatacon, leaguename, droptable=True):
if (droptable):
sqldatacon[0].execute("DROP TABLE IF EXISTS "+leaguename+"Games")
sqldatacon[0].execute("CREATE TABLE "+leaguename+"Games (\n" +
" id INTEGER PRIMARY KEY AUTOINCREMENT,\n" +
" id INTEGER PRIMARY KEY,\n" +
" Date INTEGER NOT NULL DEFAULT 0,\n" +
" Time INTEGER NOT NULL DEFAULT 0,\n" +
" DateTime INTEGER NOT NULL DEFAULT 0,\n" +
Expand Down

0 comments on commit c9f8bf7

Please sign in to comment.