diff options
Diffstat (limited to 'OpenSim/Data/MySQL/Resources/XAssetStore.migrations')
-rw-r--r-- | OpenSim/Data/MySQL/Resources/XAssetStore.migrations | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/Resources/XAssetStore.migrations b/OpenSim/Data/MySQL/Resources/XAssetStore.migrations new file mode 100644 index 0000000..9459e3e --- /dev/null +++ b/OpenSim/Data/MySQL/Resources/XAssetStore.migrations | |||
@@ -0,0 +1,32 @@ | |||
1 | # ----------------- | ||
2 | :VERSION 1 | ||
3 | |||
4 | BEGIN; | ||
5 | |||
6 | CREATE TABLE `XAssetsMeta` ( | ||
7 | `ID` char(36) NOT NULL, | ||
8 | `Hash` binary(32) NOT NULL, | ||
9 | `Name` varchar(64) NOT NULL, | ||
10 | `Description` varchar(64) NOT NULL, | ||
11 | `AssetType` tinyint(4) NOT NULL, | ||
12 | `Local` tinyint(1) NOT NULL, | ||
13 | `Temporary` tinyint(1) NOT NULL, | ||
14 | `CreateTime` int(11) NOT NULL, | ||
15 | `AccessTime` int(11) NOT NULL, | ||
16 | `AssetFlags` int(11) NOT NULL, | ||
17 | `CreatorID` varchar(128) NOT NULL, | ||
18 | PRIMARY KEY (`id`) | ||
19 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Version 1'; | ||
20 | |||
21 | CREATE TABLE `XAssetsData` ( | ||
22 | `Hash` binary(32) NOT NULL, | ||
23 | `Data` longblob NOT NULL, | ||
24 | PRIMARY KEY (`hash`) | ||
25 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Version 1'; | ||
26 | |||
27 | COMMIT; | ||
28 | |||
29 | :VERSION 2 | ||
30 | |||
31 | BEGIN; | ||
32 | COMMIT; | ||