2005-11-23 18:34:20 +01:00
|
|
|
import database
|
2005-09-06 19:52:46 +02:00
|
|
|
|
|
|
|
def clear():
|
|
|
|
try:
|
2005-11-23 18:34:20 +01:00
|
|
|
database.Users.dropTable(ifExists=True)
|
2005-09-06 19:52:46 +02:00
|
|
|
except:
|
|
|
|
pass
|
|
|
|
|
|
|
|
def create():
|
2005-11-23 18:34:20 +01:00
|
|
|
database.Users.createTable(ifExists = False)
|
2005-09-12 15:51:18 +02:00
|
|
|
#psql.create_goban_table("gast","gast2",9)
|
2005-10-09 23:29:29 +02:00
|
|
|
#psql.add_webgo_user("gast","gast")
|
|
|
|
#psql.add_webgo_user("gast2","gast2")
|
2005-09-06 19:52:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
clear()
|
|
|
|
create()
|
|
|
|
|
2005-10-09 23:29:29 +02:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|