fix tourneytypes insert for postgres again

This commit is contained in:
sqlcoder 2009-09-27 12:47:21 +01:00
parent 8d01caa30f
commit 01c33c26f8

View File

@ -1094,7 +1094,7 @@ class Database:
if self.backend == self.SQLITE:
c.execute("INSERT INTO TourneyTypes (id, siteId, buyin, fee) VALUES (NULL, 1, 0, 0);")
elif self.backend == self.PGSQL:
c.execute("insert into TourneyTypes values (0,1,0,0,0,False,False,null,False,False,False);")
c.execute("insert into TourneyTypes values (1,1,0,0,0,False,False,null,False,False,False);")
else:
c.execute("""insert into TourneyTypes(id, siteId, buyin, fee, maxSeats, knockout
,rebuyOrAddon, speed, headsUp, shootout, matrix)