Skip to content
Snippets Groups Projects
Commit f88f9731 authored by Chris Sosnin's avatar Chris Sosnin Committed by Kirill Yukhin
Browse files

box: remove unicode_ci for functions

Unicode_ci collation breaks the general
rule for objects naming, so we remove it
in version 2.3.1

Closes #4561
parent 960e9c0c
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -942,6 +942,19 @@ local function upgrade_to_2_3_0()
_ck_constraint:format(format)
end
--------------------------------------------------------------------------------
-- Tarantool 2.3.1
--------------------------------------------------------------------------------
local function drop_func_collation()
local _func = box.space[box.schema.FUNC_ID]
_func.index.name:alter({parts = {{'name', 'string'}}})
end
local function upgrade_to_2_3_1()
drop_func_collation()
end
--------------------------------------------------------------------------------
local function get_version()
......@@ -977,6 +990,7 @@ local function upgrade(options)
{version = mkversion(2, 1, 3), func = upgrade_to_2_1_3, auto = true},
{version = mkversion(2, 2, 1), func = upgrade_to_2_2_1, auto = true},
{version = mkversion(2, 3, 0), func = upgrade_to_2_3_0, auto = true},
{version = mkversion(2, 3, 1), func = upgrade_to_2_3_1, auto = true},
}
for _, handler in ipairs(handlers) do
......
......@@ -4,7 +4,7 @@ box.internal.bootstrap()
box.space._schema:select{}
---
- - ['max_id', 511]
- ['version', 2, 3, 0]
- ['version', 2, 3, 1]
...
box.space._cluster:select{}
---
......@@ -123,7 +123,7 @@ box.space._index:select{}
- [289, 2, 'name', 'tree', {'unique': true}, [[0, 'unsigned'], [2, 'string']]]
- [296, 0, 'primary', 'tree', {'unique': true}, [[0, 'unsigned']]]
- [296, 1, 'owner', 'tree', {'unique': false}, [[1, 'unsigned']]]
- [296, 2, 'name', 'tree', {'unique': true}, [{'field': 2, 'collation': 2, 'type': 'string'}]]
- [296, 2, 'name', 'tree', {'unique': true}, [[2, 'string']]]
- [297, 0, 'primary', 'tree', {'unique': true}, [[0, 'unsigned']]]
- [297, 1, 'owner', 'tree', {'unique': false}, [[1, 'unsigned']]]
- [297, 2, 'name', 'tree', {'unique': true}, [[2, 'string']]]
......
......@@ -190,7 +190,7 @@ _index:select{}
- [289, 2, 'name', 'tree', {'unique': true}, [[0, 'unsigned'], [2, 'string']]]
- [296, 0, 'primary', 'tree', {'unique': true}, [[0, 'unsigned']]]
- [296, 1, 'owner', 'tree', {'unique': false}, [[1, 'unsigned']]]
- [296, 2, 'name', 'tree', {'unique': true}, [{'field': 2, 'collation': 2, 'type': 'string'}]]
- [296, 2, 'name', 'tree', {'unique': true}, [[2, 'string']]]
- [297, 0, 'primary', 'tree', {'unique': true}, [[0, 'unsigned']]]
- [297, 1, 'owner', 'tree', {'unique': false}, [[1, 'unsigned']]]
- [297, 2, 'name', 'tree', {'unique': true}, [[2, 'string']]]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment