aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/Resources/XAssetStore.migrations
blob: 7641a97b01a8046b728fdfe88e93c6f5ad4d6735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# -----------------
:VERSION 1

BEGIN;

CREATE TABLE IF NOT EXISTS `XAssetsMeta` (
  `ID` char(36) NOT NULL,
  `Hash` binary(32) NOT NULL,
  `Name` varchar(64) NOT NULL,
  `Description` varchar(64) NOT NULL,
  `AssetType` tinyint(4) NOT NULL,
  `Local` tinyint(1) NOT NULL,
  `Temporary` tinyint(1) NOT NULL,
  `CreateTime` int(11) NOT NULL,
  `AccessTime` int(11) NOT NULL,
  `AssetFlags` int(11) NOT NULL,
  `CreatorID` varchar(128) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Version 1';

CREATE TABLE IF NOT EXISTS `XAssetsData` (
  `Hash` binary(32) NOT NULL,
  `Data` longblob NOT NULL,
  PRIMARY KEY (`hash`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Version 1';

COMMIT;

:VERSION 2

BEGIN;
COMMIT;