Skip to content

Commit 535d77c

Browse files
committed
add space
1 parent 5362932 commit 535d77c

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

src/test/resources/cartridge/app/roles/api_storage.lua

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,23 @@ local function init_space()
145145
space_with_varbinary:create_index('bucket_id', { parts = { 'bucket_id' }, unique = false, if_not_exists = true, })
146146
end
147147

148+
if major >= 2 and minor >= 10 and patch > 1 then
149+
-- test space for check instant
150+
local space_with_instant = box.schema.space.create(
151+
'space_with_instant',
152+
{
153+
format = {
154+
{ 'id', 'unsigned' },
155+
{ 'instant_field', 'instant',},
156+
{ 'bucket_id', 'unsigned' },
157+
},
158+
if_not_exists = true,
159+
}
160+
)
161+
space_with_instant:create_index('id', { parts = { 'id' }, if_not_exists = true, })
162+
space_with_instant:create_index('bucket_id', { parts = { 'bucket_id' }, unique = false, if_not_exists = true, })
163+
end
164+
148165
local space_with_string = box.schema.space.create(
149166
'space_with_string',
150167
{

src/test/resources/org/testcontainers/containers/server.lua

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,20 @@ if major >= 2 and minor >= 2 and patch > 1 then
107107
)
108108
space_with_varbinary:create_index('id', { parts = { 'id' }, if_not_exists = true, })
109109
end
110+
if major >= 2 and minor >= 10 and patch > 1 then
111+
-- test space for check instant
112+
local space_with_instant = box.schema.space.create(
113+
'space_with_instant',
114+
{
115+
format = {
116+
{ 'id', 'unsigned' },
117+
{ 'instant_field', 'instant',},
118+
},
119+
if_not_exists = true,
120+
}
121+
)
122+
space_with_instant:create_index('id', { parts = { 'id' }, if_not_exists = true, })
123+
end
110124

111125
--functions
112126

0 commit comments

Comments
 (0)