mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 09:05:00 +00:00
added auth_table patch file:
This commit is contained in:
12
erpnext/patches/july_2012/auth_table.py
Normal file
12
erpnext/patches/july_2012/auth_table.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import webnotes
|
||||
def execute():
|
||||
webnotes.conn.commit()
|
||||
|
||||
from webnotes.install_lib.install import Installer
|
||||
Installer(None, None).create_auth_table()
|
||||
|
||||
webnotes.conn.begin()
|
||||
|
||||
for user, password in webnotes.conn.sql("""select name, password from tabProfile"""):
|
||||
webnotes.conn.sql("""insert into __Auth (user, `password`) values (%s, %s)""",
|
||||
(user, password))
|
||||
Reference in New Issue
Block a user