forked from fl00r/go-tarantool-1.6
-
Notifications
You must be signed in to change notification settings - Fork 60
Closed
Labels
code healthImprove code readability, simplify maintenance and so onImprove code readability, simplify maintenance and so on
Description
#104 added excessive code in main root config
Lines 64 to 84 in fd68e12
-- Create space with UUID pk if supported | |
local uuid = require('uuid') | |
local msgpack = require('msgpack') | |
local uuid_msgpack_supported = pcall(msgpack.encode, uuid.new()) | |
if uuid_msgpack_supported then | |
local suuid = box.schema.space.create('testUUID', { | |
id = 524, | |
if_not_exists = true, | |
}) | |
suuid:create_index('primary', { | |
type = 'tree', | |
parts = {{ field = 1, type = 'uuid' }}, | |
if_not_exists = true | |
}) | |
suuid:truncate() | |
box.schema.user.grant('test', 'read,write', 'space', 'testUUID', { if_not_exists = true }) | |
suuid:insert({ uuid.fromstr("c8f0fa1f-da29-438c-a040-393f1126ad39") }) | |
end |
I forgot to clean it up after moving all UUID-related code to the separate folder.
Metadata
Metadata
Assignees
Labels
code healthImprove code readability, simplify maintenance and so onImprove code readability, simplify maintenance and so on