UbitUmarov
c57215687f
a few more changes on mysql
2017-05-06 21:43:22 +01:00
UbitUmarov
4b2ef46de6
don't hold dbconn longer than necessart
2017-05-06 20:40:29 +01:00
UbitUmarov
76337b1d8e
another misplaced close
2017-05-06 20:38:38 +01:00
UbitUmarov
504736eb43
build const strings a compile time...
2017-05-06 20:23:55 +01:00
UbitUmarov
54eb6fc779
GZipStream does have a CopyTo()
2017-05-06 18:25:07 +01:00
UbitUmarov
eb93855d84
dispose some MemoryStreams
2017-05-06 17:47:43 +01:00
UbitUmarov
025bef4e07
fix a few wrong placement ( this is a test by the way )
2017-05-06 01:47:26 +01:00
UbitUmarov
d26a9ed0b1
fix wrong placement
2017-05-06 01:41:33 +01:00
UbitUmarov
d9038e650a
MySQLConnector is not a MS product
2017-05-06 01:25:54 +01:00
Diva Canto
ab4f870000
Change the engine of the groups table back to MyISAM, because MySQL 5.5 and older don't support full test search on InnoDB
2017-05-04 18:19:46 -07:00
Geir Nøklebye
ebcfad1a83
store the physics inertia override in the database
...
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
2017-04-20 21:21:23 +01:00
Geir Nøklebye
28125202cc
update for The new Constant: integer OBJECT_REZZER_KEY = 32 + adding missing support for fields in the prims table.
...
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
2017-04-19 14:04:54 -04:00
Geir Nøklebye
fe83763c36
PGSQL: Fixed a failing query in GroupsData for deleting groups messages older than 14 days. The little known abstime function could be used for a double cast. The field TMStamp should be changed to store the data as a proper timestamp. Related to Mantis #7848 . Usually this would easily be solved using the to_timestamp function, but there is no support for it in NPGSQL as there are no very close functionality in .NET
...
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
2017-04-19 13:40:49 -04:00
UbitUmarov
44993550a8
store the physics inertia override in SQlite
2017-04-01 18:15:47 +01:00
UbitUmarov
443fc60cdf
store the physics inertia override in Mysql and add it to serializer. run prebuild is required
2017-04-01 17:49:17 +01:00
Melanie Thielker
680231d7e7
Make the MySqlGeneric layer transaction aware
2017-03-31 14:38:41 +01:00
Melanie Thielker
b16abc8166
Massive tab and trailing space cleanup
2017-01-05 19:07:37 +00:00
Melanie Thielker
53fe204eed
Create all tables ad InnoDB by default
...
MyISAM isn't properly replicated using row based replication. With the
advances in clustering, these systems are becoming more prevalent and
MyISAM isn't up to the task anymore.
2017-01-05 13:35:13 +00:00
Geir Nøklebye
af93822465
PGSQL fixed a missing cast to uuid in XInventoryData
...
Signed-off-by: Melanie Thielker <melanie@t-data.com>
2017-01-04 21:18:58 +00:00
Mandarinka Tasty
7c566dca5a
The new Constant: integer OBJECT_REZZER_KEY = 32;
...
Signed-off-by: Mandarinka Tasty <mandarinka.tasty@gmail.com>
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
2016-12-04 17:18:56 +00:00
UbitUmarov
29f6e3fc7b
fix a typo in dbs region range
2016-12-01 04:08:42 +00:00
AliciaRaven
017069636a
Increase float precision for windlight needed by scripts. mySQL Migration on regionwindlight table.
...
mySQL was setup to store smaller values because the viewers editor capped input, scripts can set higher precision so settings could change on region restart. This change brings mySQL more inline with PGSQL which uses doubles for all windlight floats.
2016-11-26 01:15:10 +00:00
UbitUmarov
5202ae7bb4
revert changes to asset desc size, my bad.. this field will possible go away in future
2016-11-24 14:39:08 +00:00
UbitUmarov
7524c7729f
change asset description max size
2016-11-22 01:34:07 +00:00
UbitUmarov
d1baa3e0c3
fix some invalid string.format arguments
2016-11-09 22:39:52 +00:00
UbitUmarov
46dd899d9e
MySQLFSAssetData asset type is a int not a varchar
2016-09-27 21:29:09 +01:00
UbitUmarov
9b2f186a8c
MySQLFSAssetData on store, if a asset already exists, assume its a valid store or regions will keep retry. The other DBs do replace the item, why doesn't FS do the same?
2016-09-27 21:10:01 +01:00
UbitUmarov
092d4fb9ff
fix typo in table name, thx tglion
2016-09-18 20:00:47 +01:00
UbitUmarov
188b5030f7
restore sqlite fixes from commit 0e6874..that got lost
2016-09-17 19:46:40 +01:00
UbitUmarov
71bd3ce49f
add load baked terrain methods
2016-09-17 16:42:40 +01:00
UbitUmarov
3f9f105295
add to databases a table to store baked terrain.
2016-09-17 15:45:11 +01:00
AliciaRaven
f8ac3d9464
Minor, remove unused OSDMap declaration in MySQL profiles
2016-09-15 18:42:28 +01:00
tglion
0e68742afc
Fix some wrong handling of booleans for SeeAVs, AnyAVSounds and GroupAVSounds fields in sqlite3-database
...
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
2016-09-05 08:39:16 +01:00
UbitUmarov
04351cc1c2
asset tests that still need UploadAttempts
2016-09-01 13:01:18 +01:00
UbitUmarov
924aaedfce
assets uploads to grid. Change the retry code. Stop using asset.UploadAttempts field that should be removed
2016-09-01 12:45:09 +01:00
UbitUmarov
5d5bad5fc1
workaround potencial memory leaks
2016-08-22 06:03:39 +01:00
Geir Nøklebye
653b896794
PGSQL: Update simulation data with a number of missing fields for parcels. Some of the fields should probably be migrated to type Boolean to avoid the hairy casting in the query. In addition the overall server code relies in the Replace in SQL statement that is proprietary to MySQL, so the PGSQL code is rather unsafe as it is. Should probably set a transaction on the whole operation so that if something goes wrong the database record is not zapped as it is now. PostgreSQL 9.5 has the upsert functionality which would bring the code closer to the MySQL version. This commit also has an update to PGSQLRegionData
...
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
2016-07-15 15:45:39 +01:00
Diva Canto
8a070f16dd
Mantis #7848 : something wrong with a data field in Groups V2
2016-06-17 12:40:04 -07:00
Melanie Thielker
8ef34a1bc5
Fix incorrect SQLite syntax in Migrations
2016-04-28 17:15:08 +02:00
Geir Nøklebye
7aa3d4256e
POSTGRES: Update database migrations to be in accordance with MySQL table definitions. Prerequisite for fixing PGSQLSimulationdata
...
Signed-off-by: Kevin Cozens <kevin@ve3syb.ca> (mantis #7846 )
2016-04-25 12:17:17 -04:00
Geir Nøklebye
b418033915
Updated the code to handle Agent Preferences. Thanks to TomDataworks for providing a final solution.
...
Signed-off-by: Kevin Cozens <kevin@ve3syb.ca> (mantis #7610 )
2016-04-25 12:15:34 -04:00
TomDataworks
e9b0f71575
Fix Mantis #7805 , table handler needs to look for all unique constraints.
...
Signed-off-by: Kevin Cozens <kevin@ve3syb.ca>
2016-04-25 12:11:03 -04:00
Geir Nøklebye
b91cfcca2b
POSTGRES: Added check for Heightfield not equal to Database NULL.. Mirrors OpenSim commit 50d738
...
Signed-off-by: Kevin Cozens <kevin@ve3syb.ca> (mantis #7845 )
2016-04-25 12:01:36 -04:00
AliciaRaven
3ff19a8ac3
Fix missing id parameter in FSAssets database connector when updating Access time.
2016-04-05 21:52:28 +01:00
Kevin Cozens
2cfe848ceb
Correct case in the names of the Avatar and Friends tables
2016-03-24 16:43:27 -04:00
Melanie Thielker
548b741130
Correct the case of the Presence table
2016-03-22 23:05:31 +01:00
Melanie Thielker
482daacea7
Add migration to add "active" column on PGSQL. UNTESTED!
2016-03-22 20:55:21 +01:00
Melanie Thielker
de109dbe92
Change casing on UserAccounts
2016-03-22 20:08:46 +01:00
Melanie Thielker
73e527fffc
Fix some artefacts that came from merging the OSGrid code.
2016-03-22 20:01:22 +01:00
Melanie Thielker
74c2113bce
Port the safer database access and the cure for "Chicken Bones" which
...
are artefacts that can be created by fsck and would make standard
FSAssets choke. These refinements were tested on OSGrid.
2016-03-05 01:17:42 +01:00
Diva Canto
ab12a14279
Pushed AssemblyVersion up to VersionInfo, so that we don't need to do global replace anymore.
2016-02-21 11:14:02 -08:00
Diva Canto
cd54bbe789
The old sqlite inventory data interface was still around and causing problems: the only part of the code using it was the data (sqlite) tests. Given that this old interface has been obsolete for several years, it has now been removed, including the tests. TODO: Writing tests for the new (ah!) inventory data interface.
2016-02-21 10:37:12 -08:00
Diva Canto
206b035571
SQLite: Removed obsolete migration file
2016-02-21 09:12:25 -08:00
Diva Canto
ee24b25165
Flatten migrations for sqlite
...
Conflicts:
OpenSim/Data/SQLite/Resources/RegionStore.migrations
(Resolved)
2016-02-21 09:10:00 -08:00
Diva Canto
ded776c86b
MySQL migrations: fix one last migration that had been left behind
2016-02-21 07:08:55 -08:00
Diva Canto
134e94a7e9
Flatten migrations for MySQL.
...
Conflicts:
OpenSim/Data/MySQL/Resources/RegionStore.migrations
OpenSim/Data/MySQL/Resources/UserAccount.migrations
2016-02-20 19:27:12 -08:00
TomDataworks
905dec5d23
Fix region data range selection in the PGSQL backend.
...
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
2016-01-10 18:05:08 +00:00
Shy Robbiani
01e7fa3095
row format fixed removed to allow creation of regions table
...
row_format=fixed is not supported by innodb and has broken the creation
of the regions table during the first startup of ROBUST. It must be a
relict from MyISAM. Also removed the probably inappropriate table
comment.
Signed-off-by: Kevin Cozens <kevin@ve3syb.ca>
2015-11-21 20:03:42 -05:00
UbitUmarov
4660c3076c
work around some 'tests' errors: assets are modified by the test, on current code
2015-11-17 02:08:01 +00:00
UbitUmarov
554f591eb6
work around some 'tests' errors
2015-11-16 18:19:54 +00:00
UbitUmarov
3e25430e3a
store rotation axis locks in MySql and SQlite dbs ( others need to be updated also
2015-10-20 18:08:04 +01:00
UbitUmarov
e0de76aa14
put back virtual declarations
2015-09-28 16:47:44 +01:00
UbitUmarov
c6f8b5d682
remove virtual declarations master doesnt have
2015-09-28 11:53:37 +01:00
UbitUmarov
f272a023e2
SQLite db migration update
2015-09-21 12:07:17 +01:00
Kevin Cozens
8c5a2e1e70
Added migration for UserAccounts table.
2015-09-15 21:52:12 -04:00
UbitUmarov
0a67cda224
remove redundant using(){}
2015-09-15 06:28:21 +01:00
UbitUmarov
6b54c741ca
try to add a mysql migration to avn
2015-09-14 03:35:01 +01:00
UbitUmarov
064aade4c1
remove a silly and not necessary List i added
2015-09-12 17:20:07 +01:00
UbitUmarov
cdaed11387
at last we can login and see objects ( friends is dead and disable in
...
scenepresence)
2015-09-03 18:39:08 +01:00
UbitUmarov
a11edceb00
seems to compile ( tests comented out)
2015-09-02 19:54:53 +01:00
UbitUmarov
371c9dd2af
bad merge?
2015-09-01 14:54:35 +01:00
UbitUmarov
50d73873db
let mysql be happy with a NULL heighmap ( yeap i made several )
2015-08-25 12:58:24 +01:00
UbitUmarov
c3e5519bf3
fix db region find by range for varregions ( ignoring others than Mysql)
2015-08-23 18:25:15 +01:00
UbitUmarov
f4719cfe1b
fix db region search by a position, for varregions ( ignoring other that
...
mysql for now )
2015-08-23 18:10:51 +01:00
UbitUmarov
7f0201ffca
fix region range compare
2015-08-23 04:48:44 +01:00
UbitUmarov
a916ef570e
fix mySQL ( ignoring other dbs )
2015-08-23 01:33:56 +01:00
Oren Hurvitz
aadd5627fe
Removed unused code that checked wait_timeout in MySQLEstateData
2015-08-11 07:35:39 +01:00
Kevin Cozens
f3c883a26d
Corrected spelling of SQLITE. Fixes mantis #7675 .
2015-08-08 17:08:06 -04:00
Oren Hurvitz
dc098ef671
Merged the two "Version 2" migrations in PGSQL
2015-08-03 15:34:59 +03:00
Geir Nøklebye
818735ae2c
PGSL Presence migration to correct a double version 2 migration that existed
...
The migration file had a version 2 migration defined twice and
therefore the LastSeen field most likely never was defined in the
presence file. This migration adds the field and migrates the table to
version 4.
Signed-off-by: Oren Hurvitz <orenh@kitely.com>
2015-08-03 13:32:11 +01:00
Geir Nøklebye
1de8c3570d
PGSQL migrations for IM_Store, UserProfiles, removal of casting exception for UserProfiles and adding double precision to PGSQL Manager
...
PGSQL migrations for IM_Store, UserProfiles, removal of casting
exception for UserProfiles and adding double precision to PGSQL Manager.
Fixes the Offline IM to Email toggle and prepares for fixing Offline
IM.
Signed-off-by: Oren Hurvitz <orenh@kitely.com>
2015-07-31 15:57:22 +01:00
Geir Nøklebye
a7fccbcf6f
Update PGSQL groups handler to accept search queries from the viewer
...
Update PGSQL groups handler to accept search queries from the viewer.
Fixed malformed query strings.
Signed-off-by: Oren Hurvitz <orenh@kitely.com>
2015-07-26 11:59:15 +01:00
Melanie Thielker
7342192223
Add quotes aroung LandFlags as PGSQL seems to choke on the word when
...
it's bare.
2015-07-23 01:59:33 +02:00
Melanie Thielker
c7f6e248e8
Correcting errors in previous change: MySQL needs int unsigned, not
...
unsigned int. PGSQL has no unsigned types, changing to bigint.
2015-07-14 21:22:53 +02:00
Melanie Thielker
7b571a928c
Mantis #7629 : Change LandFlags column to unsigned. Thanks, Jim!
2015-07-14 21:16:25 +02:00
AliciaRaven
f3f748ed11
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>
2015-07-12 04:03:08 +02:00
Melanie Thielker
a343c07d12
Some cleanup, add prebuild project, correct path
2015-07-11 19:21:32 +02:00
Melanie Thielker
2672637202
Rename for uniformity, add data module
2015-07-11 19:10:39 +02:00
Melanie Thielker
987e7e4f84
Applying Gavin Hird's patch to correct PGSQL group notices. Thatk you,
...
Gavin
2015-06-26 19:08:51 +02:00
dahlia
3aa9e786de
Thanks Gavin Hird for a fix for Mantis 0007604: DeleteClassifiedRecord exception PGSQL
2015-06-24 04:08:34 -07:00
dahlia
2c5a3ff9f0
Thanks Gavin Hird for a fix for an exception when requesting an Estate Ban when using PGSQL.
2015-06-24 03:46:30 -07:00
Diva Canto
4a516fa156
Removed the pgsql table for AgentPrefs, because it is not working. For now the Agent Preferences feature will not work with PGSQL installations -- someone who uses PGSQL needs to send a table that works.
2015-06-14 14:49:20 -07:00
Diva Canto
be68f4852c
Mantis #7610 . Changed AgentPrefs table in PGSQL to use uuid instead of varchar(36), to be consistent with the otehr pgsql tables. Since the first commit on this was yesterday, there's no migration; instead, the version starts at 2. If anyone created the table yesterday, it will be dropped and recreated.
...
WARNING: untested. (I don't use pg)
2015-06-14 09:30:55 -07:00
Diva Canto
496f35b4e8
Removing the Store methods in the DB layer of AgentPreferences, as they were simply calling the base ones.
2015-06-14 08:04:25 -07:00
Cinder
3853904b80
Quell three new warnings I introduced with AgentPrefsData, return an empty llsd map instead of an empty llsd block when no AgentPrefs service is available to try and appease Firestorm
...
Signed-off-by: Diva Canto <diva@metaverseink.com>
2015-06-14 07:59:25 -07:00
Roger Kirkman
54c1659934
AgentPreferences SQLLite Migration update Mantis #7157
...
Signed-off-by: Diva Canto <diva@metaverseink.com>
2015-06-13 22:10:51 -07:00
Cinder
7635138c59
SQLite and PGSQL adapters for AgentPreferences
...
Signed-off-by: Diva Canto <diva@metaverseink.com>
2015-06-13 14:53:17 -07:00
Cinder
0fa94f222d
Refactor AgentPreferences so that database operations happen centrally. the opensim way.
...
Signed-off-by: Diva Canto <diva@metaverseink.com>
2015-06-13 07:27:42 -07:00
Cinder
c1ddb7f05e
Relicense AgentPreferences files to BSD and OpenSimulator
...
Signed-off-by: Diva Canto <diva@metaverseink.com>
2015-06-13 07:27:26 -07:00
Cinder
6f71d5c2c6
Support for Linden AgentPreferences capability and friends (UpdateAgentLanguage and UpdateAgentInformation) and Mantis #7157
...
Signed-off-by: Diva Canto <diva@metaverseink.com>
2015-06-13 07:27:01 -07:00