Sake server: SSBB tables added

This commit is contained in:
Sepalani
2018-02-22 19:35:31 +01:00
parent 5b94a02706
commit 6e8fc4c83b

View File

@@ -3,6 +3,7 @@
Copyright (C) 2014 polaris-
Copyright (C) 2014 AdmiralCurtiss
Copyright (C) 2014 msoucy
Copyright (C) 2018 Sepalani
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
@@ -157,6 +158,20 @@ class StorageHTTPServer(BaseHTTPServer.HTTPServer):
[PK, 'INT', 'INT', 'INT' ],
['int', 'byte', 'int', 'int' ])
# Super Smash Bros. Brawl
self.create_or_alter_table_if_not_exists(
'g1658_submit',
['recordid', 'ownerid', 'data'],
[PK, 'INT', 'INT'],
['int', 'int', 'int']
)
self.create_or_alter_table_if_not_exists(
'g1658_watching',
['recordid', 'ownerid', 'data'],
[PK, 'INT', 'INT'],
['int', 'int', 'int']
)
# load column info into memory, unfortunately there's no simple way
# to check for column-existence so get that data in advance
cursor.execute("SELECT name FROM sqlite_master WHERE type='table'")