diff options
Diffstat (limited to 'OpenSim/Data/NHibernate/Resources')
-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 |