浏览代码

added back to create __Auth table

version-14
Rushabh Mehta 12 年前
父节点
当前提交
312823b19d
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. +7
    -1
      webnotes/install_lib/install.py

+ 7
- 1
webnotes/install_lib/install.py 查看文件

@@ -92,6 +92,7 @@ class Installer:


# update admin password # update admin password
self.update_admin_password(password) self.update_admin_password(password)
self.create_auth_table()
return target return target
def install_app(self): def install_app(self):
@@ -159,4 +160,9 @@ class Installer:
"patch": patch "patch": patch
}).insert() }).insert()
webnotes.conn.commit() webnotes.conn.commit()

def create_auth_table(self):
webnotes.conn.sql("""create table if not exists __Auth (
`user` VARCHAR(180) NOT NULL PRIMARY KEY,
`password` VARCHAR(180) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8""")

正在加载...
取消
保存