Navigation Menu

Skip to content

Commit

Permalink
Add missing "type" for column_create body
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Feb 26, 2014
1 parent b6583d9 commit 98cbf26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/droonga/catalog/schema.rb
Expand Up @@ -110,6 +110,7 @@ def to_column_create_body
"name" => name,
"table" => table,
"flags" => flags.join("|"),
"type" => value_type_groonga
}
sources = index_options.sources
if sources
Expand Down
3 changes: 2 additions & 1 deletion test/unit/catalog/test_schema.rb
Expand Up @@ -280,7 +280,8 @@ def test_to_column_create_body
assert_equal({
"name" => "column_name",
"flags" => "COLUMN_SCALAR",
"table" => "table_name"
"table" => "table_name",
"type" => "ShortText"
},
create_column("column_name",
{
Expand Down

0 comments on commit 98cbf26

Please sign in to comment.