$name
$name :
The table name.
Represents a table with update information.
This should not be constructed manually. It is returned by the Schema::getTable() and Schema::listTables() methods.
__construct(\Nano4\DB\Update\Str $name, Object $parent, Object $db, Array $opts = array())
Build a Nano4\DB\Update\Table object.
You should never have to call this manually, it's called by the Schema class. However, in case you need to override it, the definition is included here.
| \Nano4\DB\Update\Str | $name | The name of the table. |
| Object | $parent | The parent Schema object. |
| Object | $db | The parent database object. |
| Array | $opts | Extra options (reserved for future use.) |
update() : Bool
Perform the updates on the table schema.
It will return true if the update succeeded. It will return false if the update failed.
This method will also change the values of the following properties:
$this->updated Will be set to true if an update is performed. $this->update_ok Will match the return value of this method. $this->update_err Any errors will be appended to this list.