From 872eec40c4d9236a10308cc02b5f8f2ae8746d92 Mon Sep 17 00:00:00 2001 From: andrei Date: Wed, 25 May 2022 11:07:15 +0300 Subject: [PATCH] Added output to console for creating indexes. --- planetmint/backend/tarantool/schema.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/planetmint/backend/tarantool/schema.py b/planetmint/backend/tarantool/schema.py index 1ff8abb..da553b4 100644 --- a/planetmint/backend/tarantool/schema.py +++ b/planetmint/backend/tarantool/schema.py @@ -207,6 +207,8 @@ def create_indexes(space_name): _output = run_command_with_output(command=index_cmd.encode()) if "exists" in _output: 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: print(exists_error)