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:
Sean Dague
2008-06-11 21:01:33 +00:00
parent 68b98aecab
commit 6c1fce6147
5 changed files with 260 additions and 198 deletions

View File

@@ -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)