diff options
author | Sean Dague | 2008-07-17 20:58:20 +0000 |
---|---|---|
committer | Sean Dague | 2008-07-17 20:58:20 +0000 |
commit | 4663999c243e7ac6f05f3bb6b76fefb2ff285134 (patch) | |
tree | d99fbe2b410de768c1775db45396cf1a22610339 /OpenSim/Data/NHibernate/Resources | |
parent | add a Terrain object for the purpose of mapping. This may make sense (diff) | |
download | opensim-SC-4663999c243e7ac6f05f3bb6b76fefb2ff285134.zip opensim-SC-4663999c243e7ac6f05f3bb6b76fefb2ff285134.tar.gz opensim-SC-4663999c243e7ac6f05f3bb6b76fefb2ff285134.tar.bz2 opensim-SC-4663999c243e7ac6f05f3bb6b76fefb2ff285134.tar.xz |
first pass at Terrain implementation
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/NHibernate/Resources/MySQLDialect/002_RegionStore.sql | 9 | ||||
-rw-r--r-- | OpenSim/Data/NHibernate/Resources/RegionStore.hbm.xml | 7 |
2 files changed, 15 insertions, 1 deletions
diff --git a/OpenSim/Data/NHibernate/Resources/MySQLDialect/002_RegionStore.sql b/OpenSim/Data/NHibernate/Resources/MySQLDialect/002_RegionStore.sql new file mode 100644 index 0000000..4e9c974 --- /dev/null +++ b/OpenSim/Data/NHibernate/Resources/MySQLDialect/002_RegionStore.sql | |||
@@ -0,0 +1,9 @@ | |||
1 | BEGIN; | ||
2 | |||
3 | CREATE TABLE `Terrain` ( | ||
4 | `RegionID` char(36) not null, | ||
5 | `Map` blob, | ||
6 | PRIMARY KEY (`RegionID`) | ||
7 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
8 | |||
9 | COMMIT; \ No newline at end of file | ||
diff --git a/OpenSim/Data/NHibernate/Resources/RegionStore.hbm.xml b/OpenSim/Data/NHibernate/Resources/RegionStore.hbm.xml index 40d3864..9fc8065 100644 --- a/OpenSim/Data/NHibernate/Resources/RegionStore.hbm.xml +++ b/OpenSim/Data/NHibernate/Resources/RegionStore.hbm.xml | |||
@@ -103,6 +103,11 @@ | |||
103 | <property name="ExtraParams" type="System.Byte[]" /> | 103 | <property name="ExtraParams" type="System.Byte[]" /> |
104 | <property name="State" type="System.Byte" /> | 104 | <property name="State" type="System.Byte" /> |
105 | </component> | 105 | </component> |
106 | 106 | </class> | |
107 | <class name="OpenSim.Data.NHibernate.Terrain, OpenSim.Data.NHibernate" table="Terrain" lazy="false"> | ||
108 | <id name="RegionID" type="OpenSim.Data.NHibernate.LLUUIDUserType, OpenSim.Data.NHibernate"> | ||
109 | <generator class="assigned" /> | ||
110 | </id> | ||
111 | <property name="Map" type="System.Byte[]" /> | ||
107 | </class> | 112 | </class> |
108 | </hibernate-mapping> \ No newline at end of file | 113 | </hibernate-mapping> \ No newline at end of file |