Inheritance diagram for OpenSim::Data::Migration:

Public Member Functions | |
| Migration (DbConnection conn, Assembly assem, string type) | |
| Migration (DbConnection conn, Assembly assem, string subtype, string type) | |
| void | Update () |
Protected Member Functions | |
| virtual int | FindVersion (DbConnection conn, string type) |
Properties | |
| int | Version [get, set] |
001_Users.sql 002_Users.sql 003_Users.sql 001_Prims.sql 002_Prims.sql ...etc...
When a database driver starts up, it specifies a resource that needs to be brought up to the current revision. For instance:
Migration um = new Migration(Assembly, DbConnection, "Users"); um.Upgrade();
This works out which version Users is at, and applies all the revisions past it to it. If there is no users table, all revisions are applied in order. Consider each future migration to be an incremental roll forward of the tables in question.
Assembly must be specifically passed in because otherwise you get the assembly that Migration.cs is part of, and what you really want is the assembly of your database class.
| OpenSim::Data::Migration::Migration | ( | DbConnection | conn, | |
| Assembly | assem, | |||
| string | type | |||
| ) | [inline] |
| OpenSim::Data::Migration::Migration | ( | DbConnection | conn, | |
| Assembly | assem, | |||
| string | subtype, | |||
| string | type | |||
| ) | [inline] |
| void OpenSim::Data::Migration::Update | ( | ) | [inline] |
| virtual int OpenSim::Data::Migration::FindVersion | ( | DbConnection | conn, | |
| string | type | |||
| ) | [inline, protected, virtual] |
Reimplemented in OpenSim::Data::MSSQL::MSSQLMigration.
int OpenSim::Data::Migration::Version [get, set] |
1.5.1