mirror of https://github.com/veops/cmdb.git
parent
d74f201710
commit
26c3404f28
|
@ -89,9 +89,12 @@ def db_setup():
|
||||||
"""
|
"""
|
||||||
db.create_all()
|
db.create_all()
|
||||||
|
|
||||||
db.session.execute("set global sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,"
|
try:
|
||||||
"ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'")
|
db.session.execute("set global sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,"
|
||||||
db.session.commit()
|
"ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'")
|
||||||
|
db.session.commit()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
db.session.execute("set global tidb_enable_noop_functions='ON'")
|
db.session.execute("set global tidb_enable_noop_functions='ON'")
|
||||||
|
|
Loading…
Reference in New Issue