-
Notifications
You must be signed in to change notification settings - Fork 19
apitabledefinitionchange
Troy Murray edited this page Sep 15, 2011
·
2 revisions
Changes columns in the database based on the column definitions stored in this TableDefinition object created by the changeTable.
t = changeTable(name);
// ... one or more column definitions here ...
t.change([addColumns]);
Parameter Required Default Description addColumns No False boolean, if true, it will attempt to add new columns otherwise will check whether column exists to determine whether to add or update
If addColumns is set to true and the column already exists, your database will probably throw an error.