mirror of https://github.com/Aidaho12/haproxy-wi
v2.7.2
parent
cc139aa36c
commit
f251338d06
|
@ -248,7 +248,7 @@ def update_db_v_2_4(**kwargs):
|
||||||
def update_db_v_2_5_3(**kwargs):
|
def update_db_v_2_5_3(**kwargs):
|
||||||
con, cur = get_cur()
|
con, cur = get_cur()
|
||||||
sql = """
|
sql = """
|
||||||
CREATE TABLE IF NOT EXISTS `cred` (`enable` INTEGER NOT NULL DEFAULT 1, `username` VARCHAR ( 64 ) NOT NULL, `password` VARCHAR ( 64 ) NOT NULL );
|
CREATE TABLE IF NOT EXISTS `cred` (`id` integer primary key autoincrement, `enable` INTEGER NOT NULL DEFAULT 1, `username` VARCHAR ( 64 ) NOT NULL, `password` VARCHAR ( 64 ) NOT NULL );
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
cur.execute(sql)
|
cur.execute(sql)
|
||||||
|
|
Loading…
Reference in New Issue