init db fix
这个提交存在于:
父节点
8f66cbdab9
当前提交
5d341f3380
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
|
|
@ -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']:
|
||||||
|
|
|
||||||
正在加载…
添加表格
添加链接
在新工单中引用