Packagecom.memamsa.airdb
Interfacepublic interface IMigratable
ImplementorsMigrator

IMigratable methods must be implemented by a migratable object. The DB invokes these IMigratable methods to ensure schema migration.



Public Properties
 PropertyDefined by
  storeName : String
[read-only] Return the table name
IMigratable
Public Methods
 MethodDefined by
  
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.
IMigratable
Property detail
storeNameproperty
storeName:String  [read-only]

Return the table name

Implementation
    public function get storeName():String
Method detail
migrate()method
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