Files
opengenesislinkserver/OpenSim/Data/SQLite/Resources/XInventoryStore.migrations
T
OpenGenesis (MPL 2.0) 7224b235ef feat(inventory): persistent Firestorm thumbnail upload and metadata (#124)
* feat(inventory): add authentic Firestorm InventoryThumbnailUpload two-stage JPEG2000 texture asset cap

* build(inventory): compile Firestorm thumbnail upload module in LindenCaps assembly

* docs(config): enable proper Firestorm inventory JPEG2000 upload capability by default

* test(inventory): enforce two-stage Firestorm thumbnail caps, ownership and non-temporary JPEG2000 storage

* ci(inventory): validate Firestorm thumbnail-cap registration and secure two-phase upload

* docs(release): track actual Firestorm missing thumbnail capability, asset upload and pending inventory association

* fix(inventory): disambiguate StructuredData OSDMap in Firestorm thumbnail module

* feat(inventory): add durable per-item and per-folder thumbnail UUID fields

* feat(inventory): add durable per-item and per-folder thumbnail UUID fields

* feat(inventory): add durable per-item and per-folder thumbnail UUID fields

* feat(inventory): add durable per-item and per-folder thumbnail UUID fields

* feat(inventory): round-trip thumbnail fields through XInventoryService and preserve on system-folder version updates

* db(inventory): migrate item/folder thumbnail UUIDs without dropping existing data

* db(inventory): migrate item/folder thumbnail UUIDs without dropping existing data

* db(inventory): migrate item/folder thumbnail UUIDs without dropping existing data

* feat(inventory): attach uploaded thumbnail UUID persistently to owned item/folder metadata

* feat(inventory): transmit persistent Firestorm thumbnail asset_id metadata on inventory fetch

* feat(inventory): transmit persistent Firestorm thumbnail asset_id metadata on inventory fetch

* test(inventory): verify durable thumbnail roundtrip, viewer LLSD and all three database migrations

* docs(release): record durable thumbnail metadata, additive DB migrations and mandatory relog test

* feat(inventory): carry thumbnail IDs in remote XInventory item/folder CRUD and fetch responses

* feat(inventory): persist/retrieve thumbnail UUID over Robust XInventory HTTP protocol

* test(inventory): verify thumbnail survives simulator↔Robust HTTP connector roundtrip

* docs(release): require coordinated Robust and simulator rollout for HTTP inventory thumbnail persistence

* test(inventory): execute SQLite thumbnail schema upgrade against existing inventory content

* docs(inventory): provide screenshot-specific Firestorm and outfit diagnostics plus safe schema rollout

* fix(inventory): require current root circuit and reject unsafe cross-grid thumbnail writes

* test(inventory): ensure thumbnail uploads reject HG guest inventories and stale root-agent circuits

* docs(inventory): clarify HG thumbnail ownership isolation in multi-grid deployments
2026-10-09 22:43:15 +02:00

61 lines
3.2 KiB
Plaintext

:VERSION 1
BEGIN TRANSACTION;
CREATE TABLE inventoryfolders(
folderName varchar(64),
type integer,
version integer,
folderID varchar(36) primary key,
agentID varchar(36) not null default '00000000-0000-0000-0000-000000000000',
parentFolderID varchar(36) not null default '00000000-0000-0000-0000-000000000000');
CREATE TABLE inventoryitems(
assetID varchar(36),
assetType integer,
inventoryName varchar(64),
inventoryDescription varchar(128),
inventoryNextPermissions integer,
inventoryCurrentPermissions integer,
invType integer,
creatorID varchar(128),
inventoryBasePermissions integer,
inventoryEveryOnePermissions integer,
salePrice integer default 99,
saleType integer default 0,
creationDate integer default 2000,
groupID varchar(36) default '00000000-0000-0000-0000-000000000000',
groupOwned integer default 0,
flags integer default 0,
inventoryID varchar(36) primary key,
parentFolderID varchar(36) not null default '00000000-0000-0000-0000-000000000000',
avatarID varchar(36) not null default '00000000-0000-0000-0000-000000000000',
inventoryGroupPermissions integer not null default 0);
create index inventoryfolders_agentid on inventoryfolders(agentID);
create index inventoryfolders_parentid on inventoryfolders(parentFolderID);
create index inventoryitems_parentfolderid on inventoryitems(parentFolderID);
create index inventoryitems_avatarid on inventoryitems(avatarID);
COMMIT;
:VERSION 2
BEGIN TRANSACTION;
INSERT INTO inventoryfolders (folderName, type, version, folderID, agentID, parentFolderID) SELECT `name` AS folderName, `type` AS type, `version` AS version, `UUID` AS folderID, `agentID` AS agentID, `parentID` AS parentFolderID from old.inventoryfolders;
INSERT INTO inventoryitems (assetID, assetType, inventoryName, inventoryDescription, inventoryNextPermissions, inventoryCurrentPermissions, invType, creatorID, inventoryBasePermissions, inventoryEveryOnePermissions, salePrice, saleType, creationDate, groupID, groupOwned, flags, inventoryID, parentFolderID, avatarID, inventoryGroupPermissions) SELECT `assetID`, `assetType` AS assetType, `inventoryName` AS inventoryName, `inventoryDescription` AS inventoryDescription, `inventoryNextPermissions` AS inventoryNextPermissions, `inventoryCurrentPermissions` AS inventoryCurrentPermissions, `invType` AS invType, `creatorsID` AS creatorID, `inventoryBasePermissions` AS inventoryBasePermissions, `inventoryEveryOnePermissions` AS inventoryEveryOnePermissions, `salePrice` AS salePrice, `saleType` AS saleType, `creationDate` AS creationDate, `groupID` AS groupID, `groupOwned` AS groupOwned, `flags` AS flags, `UUID` AS inventoryID, `parentFolderID` AS parentFolderID, `avatarID` AS avatarID, `inventoryGroupPermissions` AS inventoryGroupPermissions FROM old.inventoryitems;
COMMIT;
:VERSION 3
BEGIN TRANSACTION;
ALTER TABLE inventoryitems
ADD COLUMN thumbnailID varchar(36) NOT NULL
DEFAULT '00000000-0000-0000-0000-000000000000';
ALTER TABLE inventoryfolders
ADD COLUMN thumbnailID varchar(36) NOT NULL
DEFAULT '00000000-0000-0000-0000-000000000000';
COMMIT;