提交 e83c398f 编写于 作者: Z Zachary Scott

Add a note regarding add_column restricted API [ci skip]

We should document current behavior, and this is design of API for now.

Closes #17597
上级 dc70f710
......@@ -390,6 +390,10 @@ def drop_table(table_name, options = {})
# Adds a new column to the named table.
# See TableDefinition#column for details of the options you can use.
#
# Note: Not all options will be available, generally this command should
# ignore most of them. In favor of doing a low-level call to simply
# create a column.
def add_column(table_name, column_name, type, options = {})
at = create_alter_table table_name
at.add_column(column_name, type, options)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册