IMigratable methods must be implemented by a migratable object.
The DB invokes these IMigratable methods to ensure schema migration.
storeName:String
[read-only]
Return the table name
Implementation
public function get storeName():String
public function migrate(fromVer:uint = 0, toVer:uint = 0):uint
Run the necessary migration directives to bring the schema for the
corresponding database table up-to-date. The N migration directives
specified during instantiation of this Migrator
are
numbered as versions from 0 to N-1
Parameters
| fromVer:uint (default = 0 ) — Starting schema version for this table.
|
|
| toVer:uint (default = 0 ) — Desired ending version for the schema.
|
Returns
| uint — The final schema version after necessary migration directives
have been applied. This forms the starting version, if necessary, for
the next set of migrations.
|
See also