aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data (unfollow)
Commit message (Collapse)AuthorFilesLines
2010-07-14Removed a few obsolete mono addin references. Mantis #4854Diva Canto1-9/+0
2010-07-14comment out obsolete assert that 'item has been passed to another user since ↵Justin Clark-Casey (justincc)1-1/+1
it was last set' perms flag was set when a prim item was added to a scene object
2010-07-08Hopefully fixes mantis #4852Diva Canto2-4/+4
2010-06-27Same patch as before but for SQLite.Diva Canto1-0/+8
2010-06-27Added checks to XInventory DB layer to truncate names and descriptions.Diva Canto1-1/+9
2010-06-25minor: fix spelling mistake interupt -> interrupt in migrationsJustin Clark-Casey (justincc)1-6/+3
This is for mantis 4783
2010-06-25minor: fix spelling mistake interupt -> interrupt in migrationsJustin Clark-Casey (justincc)1-6/+3
This is for mantis 4783
2010-06-19Revert "This is a HACK! Downright nasty. For some reason, the devs of the mysql"Melanie1-7/+0
Didn't do what it said on the package! This reverts commit 8643db3ef0c4dca709d85fc37240a18fd9049520.
2010-06-19This is a HACK! Downright nasty. For some reason, the devs of the mysqlMelanie1-0/+7
connector have decided that their vision of timeouts is the only valid one. This uses reflection to show them the finger. Please test.
2010-06-17Revert "Set command timeout to infinity on migrations"Melanie1-1/+0
This reverts commit 51d30fd34a950e0cd71d61ce0666a6d1e90bf233.
2010-06-17Set command timeout to infinity on migrationsMelanie1-0/+1
2010-06-14* Deleted duplicated migration that was failing anyway.Diva Canto1-2/+0
* Added an error message in initial estate owner creation that makes it clear what needs to happen.
2010-06-09Add the BEGIN; I had missedMelanie1-0/+1
2010-06-09Re-add Migration version 32, which apparently got dropped completely.Melanie1-0/+72
2010-06-08Changed XInventoryData's CreatorID to a string.Diva Canto1-1/+1
2010-06-08* Changed CreatorIDs consistently to varchar(128)Diva Canto7-53/+62
* Deleted redundant migration for assets in SQLite * Rewrote XInventory migrations in SQLite in the new style
2010-06-08Add a migration to adjust types in the WL table. The new connector likes thatMelanie1-0/+6
better
2010-06-04get TestSaveIarV0_1() working again by setting up an ↵Justin Clark-Casey (justincc)2-3/+2
OpenSim.Data.Null.UserAuthenticationData plugin additional tweaks to get this working properly
2010-06-04remove estate stuff in sqlite region migrations since this also exists in ↵Justin Clark-Casey (justincc)1-54/+1
estate migrations, change Sandbox to sandbox in sqlite region migrations re-enabling the sqlite data tests revealed these errors!
2010-06-04add sqlite database back to database testsJustin Clark-Casey (justincc)2-2/+2
this appears to be okay even though we reuse it between runs without deleting it first. size of the database appears not to be changing though that could be deceptive
2010-06-04Fix bug where prim items were not loaded in the new sqlite database handlerJustin Clark-Casey (justincc)1-27/+39
This addresses mantis http://opensimulator.org/mantis/view.php?id=4739
2010-05-26Minor correction to AssetTests.csAlexRa1-3/+3
(forgot to change test descriptions, has no effect on running the tests)
2010-05-23The 8th migration statement in AssetStore.migrations didn't look right.Diva Canto1-1/+1
2010-05-23Ensured that tests are skipped for wrong conn string, also m_log chngAlexRa1-2/+23
The base test class now tries to connect to DB, ignores all tests in the class if unable to. Also m_log changed to instance field (which in this case shouldn't cause any problems), to avoid having to define it separately in each derived class. Here I touched things that I don't understand well (using log4net), so please review this commit.
2010-05-23Removed (unused?) empty SQL files from MSSQL resource dirAlexRa9-0/+0
There was a whole bunch of these SQL files, all empty and apparently unused. Removing them is just a clean-up, if anybody has a reason for these files to be there, feel free to revert.
2010-05-23MySQL Migrations: Minor correcton to Region/Estate splitAlexRa2-6/+12
(some Estate SQL left behind in the Region migration)
2010-05-23MSSQL Migration: CreatorID in InventoryItems changed to VARCHAR(36)AlexRa1-0/+70
Again, the same thing about potentially having non-GUID CreatorID.
2010-05-23Various minor changes in the data testsAlexRa5-16/+18
2010-05-23Further corrections to MS SQL stores (now passes all tests)AlexRa2-89/+49
Besides, AssetData is slightly optimized to StoreAsset in one request ("IF EXISTS() UPDATE ... ELSE INSERT ...") The main change in the MS SQL Inventory implem. is that it now return empty list (or whatever) when called with UUID.Zero, which is consistent with how the code for other DBs work. I did no changes at all in XInventory, as there is no test set for them.
2010-05-23Split migrations for RegionStore and EstateStore (see WARNING!)AlexRa4-103/+157
ok, so the estate stores now want their own migration files, but as it happened the SQL definition were inside the Region migrations. It seems better/cleaner to keep each 'store' separately updatable. WARNING: any editing in the middle of the migration scripts (as opposite to just appending to them) has the potential of messing up updates of existing databases. As far as I can see, this one is (probably) safe, the worst that could happen is the EstateStore migration silently fail if the estate the tables are already there.
2010-05-23Unitests: Asset, Estate, Region (the "legacy" one), InventoryAlexRa5-173/+137
The tests have been modified to work under NUnit 2.4.6 (the one currently used in the project). They will also work with NUnit 2.5+ as is, but will look better if you #define NUNIT25 for them.
2010-05-23Added MS SQL test conn to INI - only as an example, modify before use!!!AlexRa1-4/+21
NOTE that this INI file is currently loaded as a embedded RESOURCE, which is weird and has a disadvantage of having to rebuild the Tests whenever the conn strings are changed. The only reason is that I couldn't figure out a reliable way to put this INI into the correct dir at runtime. If somebody can do it, that would be cool.
2010-05-23Removed MySql and SQLite-specific asset test filesAlexRa2-156/+0
2010-05-23BasicAssetTest.cs replaced by AssetTests.csAlexRa1-0/+161
AssetTests: The name has changed to reflect the fact it is no longer a base class, but the complete asset test for all supported databases. The test can also check storing of CreatorID, but the feature is disabled at this commit!
2010-05-23Bugfix in tests (must clear db before migrations, not after)AlexRa3-3/+3
2010-05-23EstateData tests passing on all DBsAlexRa1-28/+2
2010-05-23Corrections in RegionTests.cs. It now fully works!AlexRa1-48/+75
The problem was that some tests relied on prior tests to leave the DB in a particular state, but the test class cleared the DB every time. The affected tests have been merged into one to remove the dependencies. tested on all 3 Dbs, all tests green.
2010-05-23Minor corrections in BasicDataServiceTest.csAlexRa1-0/+41
(added more functions for cleaning up DB from the derived tests)
2010-05-23MSSQL: added asset_flags, CreatorID to migrationsAlexRa1-0/+6
2010-05-23MSSQLAssetData updated to support [CreatorID], [asset_flags]AlexRa1-5/+11
2010-05-23MSSQLAssetData: fixed some weirdnessAlexRa1-7/+12
Fixed unfinished SQL in FetchAssetMetadataSet, fixed SQL in UpdateAsset (must not modify ID). NOT tested! But apparently shouldn't work worse than the previous version, esp. the FetchMetadata thing.
2010-05-23All data tests made DBMS-independentAlexRa10-610/+160
2010-05-23Added generic base classes for testing database servicesAlexRa3-0/+241
These are some generic classes that simplify writing tests for any of the data connectors and databases. Among other things, configuring the connection strings is done once, in a separate resource file. Tests based on the new BasicDataServiceTest class require NUnit 2.5 or better.
2010-05-20Cleaned up MySql migrations a bit more, got rid of all old-form migration ↵Diva Canto5-32/+8
files. Restored Presence table to its taboo-breaking form.
2010-05-20Revert one of the previous patches' hunks. The new code looked better, butMelanie1-3/+10
was less efficient.
2010-05-20Series of patches to include creator ID in assets.AlexRa1-4/+35
Contains a migration. SQLite: May contain nuts. The SQLite migration copies the entire asset table. Be prepared for quite a wait. Don't interrupt it. Back up your assets db. BasicAssetTest checks CreatorID storage, new test for weird CreatorID (now also checks that non-GUID or empty CreatorID gets stored correctly) Signed-off-by: Melanie <melanie@t-data.com>
2010-05-19Scrambled asset type in BasicAssetTest.cs!AlexRa1-9/+10
The asset type wasn't in the list of "DontScramble" fields, so the test assets were stored with randomized type, which caused exception on reading them. Also the scrambler was moved from local var to the class level, so it could be used in the new tests I've added (see the next commit).
2010-05-19MySQLAssetData.cs now supports asset_flags, CreatorIDAlexRa1-5/+7
2010-05-19MySQL: added CreatorID, moved asset_flag to migration scriptAlexRa1-0/+8
2010-05-19SQLite: CreatorID added (and asset_flags moved) to the migration scriptAlexRa1-0/+24