Skip to main content
Adds one column to a table. Existing rows get NULL, or the column’s default if it has one.

Parameters

string
required
Project id from list_projects. You need write access.
string
required
Table name.
object
required
The column to add.

Result

The table’s updated definition. Same shape as the describe_table result.

Example

Arguments
Result

Errors

Notes

  • To add a foreign key, the column must be created with the table. See Foreign keys.
  • To make an existing nullable column required, add a new NOT NULL column with a default, or create a new table and copy the rows.