schema: allow to store custom fields in format's field definition
Some users store in format fields their custom keys. But current opts parser does not allow to store any unknown keys. Lets allow it. Example: format = {} format[1] = {name = 'field1', type = 'unsigned', custom_field = 'custom_value'} s = box.schema.create_space('test', {format = format}) s:format()[1].custom_field == 'custom_value' Closes #2839
Showing
- src/box/alter.cc 3 additions, 2 deletionssrc/box/alter.cc
- src/box/opt_def.c 11 additions, 6 deletionssrc/box/opt_def.c
- src/box/opt_def.h 15 additions, 2 deletionssrc/box/opt_def.h
- test/box/ddl.result 25 additions, 0 deletionstest/box/ddl.result
- test/box/ddl.test.lua 11 additions, 0 deletionstest/box/ddl.test.lua
Loading
Please register or sign in to comment