EctoTablestore.Migration.add_column
You're seeing just the macro
add_column
, go back to EctoTablestore.Migration module for more information.
Adds a column what already be pre-defined column when creating a secondary index.
Adds a pre-defined column when creating a table.
This function only accepts types as :integer
| :double
| :boolean
| :string
| :binary
.
For more information see the Chinese Docs | English Docs
Examples
create table("posts") do
add_pk(:id, :integer, partition_key: true)
add_pk(:owner_id, :string)
add_column(:title, :string)
add_column(:content, :string)
end