@@ -27,26 +27,6 @@ box.once("init", function()
27
27
})
28
28
s_1 :truncate ()
29
29
30
- local s_2 = box .schema .space .create (' testDatetime_2' , {
31
- id = 525 ,
32
- if_not_exists = true ,
33
- })
34
- s_2 :format ({
35
- { ' Cid' , type = ' unsigned' },
36
- { ' Datetime' , type = ' datetime' },
37
- { ' Orig' , type = ' unsigned' },
38
- { ' Member' , type = ' array' },
39
- })
40
- s_2 :create_index (' primary' , {
41
- type = ' tree' ,
42
- parts = {
43
- { field = 1 , type = ' unsigned' },
44
- { field = 2 , type = ' datetime' },
45
- },
46
- if_not_exists = true
47
- })
48
- s_2 :truncate ()
49
-
50
30
local s_3 = box .schema .space .create (' testDatetime_3' , {
51
31
id = 526 ,
52
32
if_not_exists = true ,
@@ -55,15 +35,13 @@ box.once("init", function()
55
35
type = ' tree' ,
56
36
parts = {
57
37
{1 , ' uint' },
58
- {2 , ' datetime' }
59
38
},
60
39
if_not_exists = true
61
40
})
62
41
s_3 :truncate ()
63
42
64
43
box .schema .func .create (' call_me_maybe' )
65
44
box .schema .user .grant (' test' , ' read,write' , ' space' , ' testDatetime_1' , { if_not_exists = true })
66
- box .schema .user .grant (' test' , ' read,write' , ' space' , ' testDatetime_2' , { if_not_exists = true })
67
45
box .schema .user .grant (' test' , ' read,write' , ' space' , ' testDatetime_3' , { if_not_exists = true })
68
46
end )
69
47
@@ -74,9 +52,9 @@ local function call_me_maybe()
74
52
return {
75
53
{
76
54
5 , " Poyekhali!" , {
77
- {dt1 , " Klushino" },
78
- {dt2 , " Baikonur" },
79
- {dt3 , " Novoselovo" },
55
+ {" Klushino" , dt1 },
56
+ {" Baikonur" , dt2 },
57
+ {" Novoselovo" , dt3 },
80
58
},
81
59
}
82
60
}
0 commit comments