EctoTablestore.Migration.add_column

You're seeing just the macro add_column, go back to EctoTablestore.Migration module for more information.
Link to this macro

add_column(column)

View Source (macro)

Adds a column what already be pre-defined column when creating a secondary index.

Link to this macro

add_column(column, type)

View Source (macro)

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