mirror of https://github.com/Aidaho12/haproxy-wi
parent
1ae61a35bf
commit
963ef82345
|
@ -944,6 +944,7 @@ def update_db_v_6_1_0(**kwargs):
|
||||||
|
|
||||||
|
|
||||||
def update_db_v_6_1_3(**kwargs):
|
def update_db_v_6_1_3(**kwargs):
|
||||||
|
if mysql_enable == '1':
|
||||||
cursor = conn.cursor()
|
cursor = conn.cursor()
|
||||||
sql = list()
|
sql = list()
|
||||||
sql.append("ALTER TABLE `waf_rules` ADD COLUMN service VARCHAR ( 64 ) DEFAULT 'haproxy'")
|
sql.append("ALTER TABLE `waf_rules` ADD COLUMN service VARCHAR ( 64 ) DEFAULT 'haproxy'")
|
||||||
|
@ -957,6 +958,8 @@ def update_db_v_6_1_3(**kwargs):
|
||||||
else:
|
else:
|
||||||
if kwargs.get('silent') != 1:
|
if kwargs.get('silent') != 1:
|
||||||
print('Updating... DB has been updated to version 6.1.3.0')
|
print('Updating... DB has been updated to version 6.1.3.0')
|
||||||
|
else:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def update_ver():
|
def update_ver():
|
||||||
|
|
Loading…
Reference in New Issue