-
Notifications
You must be signed in to change notification settings - Fork 19
apimigrationchangetable
Troy Murray edited this page Sep 19, 2011
·
4 revisions
Creates a table definition object to apply multiple column definition changes to an existing table.
t = changeTable(name);
Parameter | Type | Required | Default | Description |
name | string | Yes | existing table name |
Note that the table will not be modified in the database until you call the change function on the table definition object.
If a particular column name already exists in the table, the column definition will be changed, otherwise the column will be added.
If you only want to add or change a single column in the table, then it may be simpler to use either addColumn, changeColumn or renameColumn functions.
t = changeTable('members');
// ... add some column definition changes ...
t.change();