Little fix in dbadmin
This commit is contained in:
parent
44e3fe474f
commit
4c449fe2a7
1 changed files with 4 additions and 1 deletions
|
|
@ -117,7 +117,10 @@ def start():
|
||||||
for table in new_tables:
|
for table in new_tables:
|
||||||
print(Style.NORMAL+"--Creating table "+table+"...")
|
print(Style.NORMAL+"--Creating table "+table+"...")
|
||||||
WebModel.query(WebModel, WebModel.model[table].create_table())
|
WebModel.query(WebModel, WebModel.model[table].create_table())
|
||||||
print("--Adding indexes and constraints for the new table")
|
|
||||||
|
for table in new_tables:
|
||||||
|
|
||||||
|
print("--Adding indexes and constraints for the new table "+table)
|
||||||
|
|
||||||
for k_field, index in WebModel.arr_sql_index[table].items():
|
for k_field, index in WebModel.arr_sql_index[table].items():
|
||||||
print("---Added index to "+k_field)
|
print("---Added index to "+k_field)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue