mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
check in working migration code fore SQLite. This
is now using migrations instead of the old model to create tables. Tested for existing old tables, and for creating new ones.
This commit is contained in:
@@ -159,7 +159,13 @@ namespace OpenSim.Data
|
||||
public int Version
|
||||
{
|
||||
get { return FindVersion(_type); }
|
||||
set { UpdateVersion(_type, value); }
|
||||
set {
|
||||
if (Version < 1) {
|
||||
InsertVersion(_type, value);
|
||||
} else {
|
||||
UpdateVersion(_type, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private int FindVersion(string type)
|
||||
|
||||
Reference in New Issue
Block a user