mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-25 15:05:49 +00:00
Merge branch 'planetmint-tarantool' of https://github.com/liviu-lesan/planetmint into liviu-lesan-planetmint-tarantool
This commit is contained in:
commit
f0c827057e
@ -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