aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/NHibernate/Resources
diff options
context:
space:
mode:
authorSean Dague2008-07-17 20:58:20 +0000
committerSean Dague2008-07-17 20:58:20 +0000
commit4663999c243e7ac6f05f3bb6b76fefb2ff285134 (patch)
treed99fbe2b410de768c1775db45396cf1a22610339 /OpenSim/Data/NHibernate/Resources
parentadd a Terrain object for the purpose of mapping. This may make sense (diff)
downloadopensim-SC_OLD-4663999c243e7ac6f05f3bb6b76fefb2ff285134.zip
opensim-SC_OLD-4663999c243e7ac6f05f3bb6b76fefb2ff285134.tar.gz
opensim-SC_OLD-4663999c243e7ac6f05f3bb6b76fefb2ff285134.tar.bz2
opensim-SC_OLD-4663999c243e7ac6f05f3bb6b76fefb2ff285134.tar.xz
first pass at Terrain implementation
Diffstat (limited to 'OpenSim/Data/NHibernate/Resources')
-rw-r--r--OpenSim/Data/NHibernate/Resources/MySQLDialect/002_RegionStore.sql9
-rw-r--r--OpenSim/Data/NHibernate/Resources/RegionStore.hbm.xml7
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 @@
1BEGIN;
2
3CREATE TABLE `Terrain` (
4 `RegionID` char(36) not null,
5 `Map` blob,
6 PRIMARY KEY (`RegionID`)
7) ENGINE=InnoDB DEFAULT CHARSET=utf8;
8
9COMMIT; \ 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