working mysql based topfails site

This commit is contained in:
2010-04-07 11:25:28 -07:00
parent 095ed3c3b9
commit f95af53188
7 changed files with 5 additions and 6 deletions

View File

@@ -65,7 +65,7 @@ def CreateDBSchema(conn):
""")
conn.execute("""
CREATE TABLE IF NOT EXISTS tests (buildid INT, name TEXT, description TEXT)
CREATE TABLE IF NOT EXISTS tests (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, buildid INT, name TEXT, description TEXT)
""")
conn.execute("""
CREATE INDEX tests_name ON tests (name(1024))