diff options
author | Sean Dague | 2008-06-10 23:17:18 +0000 |
---|---|---|
committer | Sean Dague | 2008-06-10 23:17:18 +0000 |
commit | be400d1bd07bf2f0fb7f555a1106f5931c23ddd8 (patch) | |
tree | 24d48a8fff379c745833aabca04c3029fdbef78f /OpenSim/Data/Migration.cs | |
parent | update of migration code to be more sane on version (diff) | |
download | opensim-SC-be400d1bd07bf2f0fb7f555a1106f5931c23ddd8.zip opensim-SC-be400d1bd07bf2f0fb7f555a1106f5931c23ddd8.tar.gz opensim-SC-be400d1bd07bf2f0fb7f555a1106f5931c23ddd8.tar.bz2 opensim-SC-be400d1bd07bf2f0fb7f555a1106f5931c23ddd8.tar.xz |
I'm going to need the Version property to manage
migrating from the old to the new system. Silly legacy
code.
Diffstat (limited to 'OpenSim/Data/Migration.cs')
-rw-r--r-- | OpenSim/Data/Migration.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Data/Migration.cs b/OpenSim/Data/Migration.cs index fe4dfc4..83f4c3d 100644 --- a/OpenSim/Data/Migration.cs +++ b/OpenSim/Data/Migration.cs | |||
@@ -156,6 +156,12 @@ namespace OpenSim.Data | |||
156 | return max; | 156 | return max; |
157 | } | 157 | } |
158 | 158 | ||
159 | public int Version | ||
160 | { | ||
161 | get { return FindVersion(_type); } | ||
162 | set { UpdateVersion(_type, value); } | ||
163 | } | ||
164 | |||
159 | private int FindVersion(string type) | 165 | private int FindVersion(string type) |
160 | { | 166 | { |
161 | int version = 0; | 167 | int version = 0; |