diff options
Diffstat (limited to 'OpenSim/Data/NHibernate/Resources')
-rw-r--r-- | OpenSim/Data/NHibernate/Resources/AssetBase.hbm.xml | 2 | ||||
-rw-r--r-- | OpenSim/Data/NHibernate/Resources/SQLiteDialect/001_AssetStore.sql | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/OpenSim/Data/NHibernate/Resources/AssetBase.hbm.xml b/OpenSim/Data/NHibernate/Resources/AssetBase.hbm.xml index 3c94d92..12ab981 100644 --- a/OpenSim/Data/NHibernate/Resources/AssetBase.hbm.xml +++ b/OpenSim/Data/NHibernate/Resources/AssetBase.hbm.xml | |||
@@ -1,7 +1,7 @@ | |||
1 | <?xml version="1.0" encoding="utf-8" ?> | 1 | <?xml version="1.0" encoding="utf-8" ?> |
2 | <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"> | 2 | <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"> |
3 | <class name="OpenSim.Framework.AssetBase, OpenSim.Framework" table="Assets" lazy="false"> | 3 | <class name="OpenSim.Framework.AssetBase, OpenSim.Framework" table="Assets" lazy="false"> |
4 | <id name="FullID" column="UUID" type="OpenSim.Data.NHibernate.LLUUIDUserType, OpenSim.Data.NHibernate"> | 4 | <id name="FullID" column="ID" type="OpenSim.Data.NHibernate.LLUUIDUserType, OpenSim.Data.NHibernate"> |
5 | <generator class="assigned" /> | 5 | <generator class="assigned" /> |
6 | </id> | 6 | </id> |
7 | <property name="Type" type="SByte" /> | 7 | <property name="Type" type="SByte" /> |
diff --git a/OpenSim/Data/NHibernate/Resources/SQLiteDialect/001_AssetStore.sql b/OpenSim/Data/NHibernate/Resources/SQLiteDialect/001_AssetStore.sql new file mode 100644 index 0000000..e553cff --- /dev/null +++ b/OpenSim/Data/NHibernate/Resources/SQLiteDialect/001_AssetStore.sql | |||
@@ -0,0 +1,14 @@ | |||
1 | BEGIN TRANSACTION; | ||
2 | |||
3 | create table Assets( | ||
4 | ID varchar(36) not null primary key, | ||
5 | Type int default 0, | ||
6 | InvType int default 0, | ||
7 | Name varchar(64), | ||
8 | Description varchar(64), | ||
9 | Local boolean, | ||
10 | Temporary boolean, | ||
11 | Data blob, | ||
12 | ); | ||
13 | |||
14 | END; \ No newline at end of file | ||