Bringing FSAssets more inline with current OpenSim standards. * If no connection string found in assets config, fallback to using default database config * Create database storage interface to allow other db connectors to be written at some point * Add MySQL migrations file to create the initial db table * Added new config option named DaysBetweenAccessTimeUpdates to reduce db load by only updating access times when fetching assets if the last access time was over the threshold. This idea was taken from XAssets service. * Change log message headers to indicate FS assets is the source not just assets

Signed-off-by: Melanie Thielker <melanie@t-data.com>
This commit is contained in:
AliciaRaven
2015-07-12 01:35:57 +01:00
committed by Melanie Thielker
parent c59144ff13
commit f3f748ed11
4 changed files with 199 additions and 55 deletions

View File

@@ -0,0 +1,18 @@
# -----------------
:VERSION 1
BEGIN;
CREATE TABLE `fsassets` (
`id` char(36) NOT NULL,
`name` varchar(64) NOT NULL DEFAULT '',
`description` varchar(64) NOT NULL DEFAULT '',
`type` int(11) NOT NULL,
`hash` char(80) NOT NULL,
`create_time` int(11) NOT NULL DEFAULT '0',
`access_time` int(11) NOT NULL DEFAULT '0',
`asset_flags` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
COMMIT;