This commit is contained in:
Matthew Scragg 2013-10-04 16:54:46 -05:00
джерело 694f1c2b5e
коміт 8f66cbdab9
1 змінених файлів з 2 додано та 2 видалено

@ -53,11 +53,11 @@ def init_db(dbname):
rdb.table_create(tbl).run(db)
if not 'name' in rdb.table('users').index_list().run(db):
rdb.table('sites').indexCreate('name').run(db)
rdb.table('sites').index_create('name').run(db)
for i in ['username', 'email']:
if not i in rdb.table('users').index_list().run(db):
rdb.table('users').indexCreate(i).run(db)
rdb.table('users').index_create(i).run(db)
s = Site()
if not s.get_by_name('_'):