From b3d43ef591299c15f870368ea1fefe6ff372d04d Mon Sep 17 00:00:00 2001 From: andrei Date: Tue, 24 May 2022 19:01:59 +0300 Subject: [PATCH] Implemented planetmint init via schema.py ! --- planetmint/backend/tarantool/schema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/planetmint/backend/tarantool/schema.py b/planetmint/backend/tarantool/schema.py index ae8dcd1..eb4f66b 100644 --- a/planetmint/backend/tarantool/schema.py +++ b/planetmint/backend/tarantool/schema.py @@ -143,7 +143,7 @@ def create_database(connection, not_used=None): ''' # connection.init_database() - raise warnings.warn("Function schema.'create_database', ignored. Cannot be used using TarantoolDB") + warnings.warn("Function schema.'create_database', ignored. Cannot be used using TarantoolDB") def run_command_with_output(command): @@ -157,7 +157,7 @@ def run_command_with_output(command): @register_schema(TarantoolDB) -def create_tables(used_for_dispatch): +def create_tables(connection, dbname): for _space in SPACE_NAMES: try: cmd = SPACE_COMMANDS[_space].encode()