mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-25 15:05:49 +00:00
Added output to console for creating indexes.
This commit is contained in:
parent
ae3b4fb2a6
commit
872eec40c4
@ -207,6 +207,8 @@ def create_indexes(space_name):
|
|||||||
_output = run_command_with_output(command=index_cmd.encode())
|
_output = run_command_with_output(command=index_cmd.encode())
|
||||||
if "exists" in _output:
|
if "exists" in _output:
|
||||||
raise tarantool.error.SchemaError(f"Index {index_name} already exists.")
|
raise tarantool.error.SchemaError(f"Index {index_name} already exists.")
|
||||||
|
else:
|
||||||
|
print(f"Index '{index_name}' created succesfully.")
|
||||||
except tarantool.error.SchemaError as exists_error:
|
except tarantool.error.SchemaError as exists_error:
|
||||||
print(exists_error)
|
print(exists_error)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user