mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-25 15:05:49 +00:00
Implemented planetmint init via schema.py !
This commit is contained in:
parent
b16c8a99fb
commit
b3d43ef591
@ -143,7 +143,7 @@ def create_database(connection, not_used=None):
|
|||||||
|
|
||||||
'''
|
'''
|
||||||
# connection.init_database()
|
# 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):
|
def run_command_with_output(command):
|
||||||
@ -157,7 +157,7 @@ def run_command_with_output(command):
|
|||||||
|
|
||||||
|
|
||||||
@register_schema(TarantoolDB)
|
@register_schema(TarantoolDB)
|
||||||
def create_tables(used_for_dispatch):
|
def create_tables(connection, dbname):
|
||||||
for _space in SPACE_NAMES:
|
for _space in SPACE_NAMES:
|
||||||
try:
|
try:
|
||||||
cmd = SPACE_COMMANDS[_space].encode()
|
cmd = SPACE_COMMANDS[_space].encode()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user