fix tourneytypes insert for postgres

This commit is contained in:
sqlcoder 2009-09-22 22:04:05 +01:00
parent b0677545e0
commit 455e92e6f6

View File

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