init db fix

这个提交存在于:
Matthew Scragg 2013-10-04 16:57:33 -05:00
父节点 8f66cbdab9
当前提交 5d341f3380

查看文件

@ -52,7 +52,7 @@ def init_db(dbname):
if not tbl in rdb.table_list().run(db): if not tbl in rdb.table_list().run(db):
rdb.table_create(tbl).run(db) rdb.table_create(tbl).run(db)
if not 'name' in rdb.table('users').index_list().run(db): if not 'name' in rdb.table('sites').index_list().run(db):
rdb.table('sites').index_create('name').run(db) rdb.table('sites').index_create('name').run(db)
for i in ['username', 'email']: for i in ['username', 'email']: