diff options
Diffstat (limited to 'OpenSim/Data/MSSQL/Resources/001_InventoryStore.sql')
-rw-r--r-- | OpenSim/Data/MSSQL/Resources/001_InventoryStore.sql | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/OpenSim/Data/MSSQL/Resources/001_InventoryStore.sql b/OpenSim/Data/MSSQL/Resources/001_InventoryStore.sql new file mode 100644 index 0000000..836d2d1 --- /dev/null +++ b/OpenSim/Data/MSSQL/Resources/001_InventoryStore.sql | |||
@@ -0,0 +1,64 @@ | |||
1 | BEGIN TRANSACTION | ||
2 | |||
3 | CREATE TABLE [inventoryfolders] ( | ||
4 | [folderID] [varchar](36) NOT NULL default '', | ||
5 | [agentID] [varchar](36) default NULL, | ||
6 | [parentFolderID] [varchar](36) default NULL, | ||
7 | [folderName] [varchar](64) default NULL, | ||
8 | [type] [smallint] NOT NULL default 0, | ||
9 | [version] [int] NOT NULL default 0, | ||
10 | PRIMARY KEY CLUSTERED | ||
11 | ( | ||
12 | [folderID] ASC | ||
13 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
14 | ) ON [PRIMARY] | ||
15 | |||
16 | CREATE NONCLUSTERED INDEX [owner] ON [inventoryfolders] | ||
17 | ( | ||
18 | [agentID] ASC | ||
19 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
20 | |||
21 | CREATE NONCLUSTERED INDEX [parent] ON [inventoryfolders] | ||
22 | ( | ||
23 | [parentFolderID] ASC | ||
24 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
25 | |||
26 | |||
27 | CREATE TABLE [inventoryitems] ( | ||
28 | [inventoryID] [varchar](36) NOT NULL default '', | ||
29 | [assetID] [varchar](36) default NULL, | ||
30 | [assetType] [int] default NULL, | ||
31 | [parentFolderID] [varchar](36) default NULL, | ||
32 | [avatarID] [varchar](36) default NULL, | ||
33 | [inventoryName] [varchar](64) default NULL, | ||
34 | [inventoryDescription] [varchar](128) default NULL, | ||
35 | [inventoryNextPermissions] [int] default NULL, | ||
36 | [inventoryCurrentPermissions] [int] default NULL, | ||
37 | [invType] [int] default NULL, | ||
38 | [creatorID] [varchar](36) default NULL, | ||
39 | [inventoryBasePermissions] [int] NOT NULL default 0, | ||
40 | [inventoryEveryOnePermissions] [int] NOT NULL default 0, | ||
41 | [salePrice] [int] default NULL, | ||
42 | [saleType] [tinyint] default NULL, | ||
43 | [creationDate] [int] default NULL, | ||
44 | [groupID] [varchar](36) default NULL, | ||
45 | [groupOwned] [bit] default NULL, | ||
46 | [flags] [int] default NULL, | ||
47 | PRIMARY KEY CLUSTERED | ||
48 | ( | ||
49 | [inventoryID] ASC | ||
50 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
51 | ) ON [PRIMARY] | ||
52 | |||
53 | |||
54 | CREATE NONCLUSTERED INDEX [owner] ON [inventoryitems] | ||
55 | ( | ||
56 | [avatarID] ASC | ||
57 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
58 | |||
59 | CREATE NONCLUSTERED INDEX [folder] ON [inventoryitems] | ||
60 | ( | ||
61 | [parentFolderID] ASC | ||
62 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
63 | |||
64 | COMMIT | ||