mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
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:
committed by
Melanie Thielker
parent
c59144ff13
commit
f3f748ed11
18
OpenSim/Data/MySQL/Resources/FSAssetStore.migrations
Normal file
18
OpenSim/Data/MySQL/Resources/FSAssetStore.migrations
Normal 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;
|
||||
Reference in New Issue
Block a user