aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data (unfollow)
Commit message (Collapse)AuthorFilesLines
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
2010-05-19Added CreatorID to SQLite asset dataAlexRa1-15/+27
2010-05-19A bit of harmless refactoring in SQLiteAssetData.csAlexRa1-10/+3
2010-05-19Kind of fixed Melanie's "Exception(sql)" correctionAlexRa1-2/+2
Throwing an Ex. with SQL command in the message looks weird, this is a bit better, but I'm still not sure if that's the proper way to handle. Also, there is a catch one level up, so is this one necessary?
2010-05-19Change appender to deal with line feeds more intelligently.Melanie1-1/+1
Change migration error reporting to not truncate the statement when reporting. It's a bit messier than the old error reporting, but at least one gets an idea of what could be wrong again. And things look a lot neater now.
2010-05-19Clean up output a bitMelanie2-8/+11
2010-05-19Fix the migration message to say "Continuing" again. Remove line feed, whichMelanie1-1/+1
prevented the full message from displaying.
2010-05-19Remove the return that was inserted in the last merge to allowMelanie1-1/+0
migrations to continue in the face of an error
2010-05-19Revert "Allow migration steps to fail again without bringing down the house"Melanie1-1/+1
This reverts commit 167db502593de5f535d8c322005c63ef263940ed.
2010-05-19Allow migration steps to fail again without bringing down the houseMelanie1-1/+1
2010-05-18Make m_log in migrations private. Define new m_log in derived classMelanie2-1/+3
2010-05-18Binary Guids are 16 chars long. Fix parser.Melanie1-1/+1
2010-05-19Some more corrections after MySQL connector updateAlexRa2-2/+3
2010-05-19All (?) MySQL stores fixed to use DBGuid.FromDB()AlexRa5-92/+68
This was needed if we want to update to the latest MySQL connector dll. It automatically converts CHAR(36) to Guids, so getting them as strings no longer works. By using DBGuid.FromDB(), we unlink from any particular storage format of GUIDs, could even make them BINARY(16) if we like. Actually not all MySql units are touched, but the remaining ones don't seem to be affected (they don't read GUIDs from DB)
2010-05-19Added DBGuids.cs (static func DBGuid.FromDB()AlexRa1-0/+44
This DBMS-independent function to be used converting UUIDs from whatever format used in the DB (string/binary/Guid). This is mostly needed for MySQL, as in MSSQL they are always UNIQUEIDENTIFIERs and in SQLite always strings (but would look better if we use it there anyway).
2010-05-18MS SQL migrations converted to the new formatAlexRa77-2008/+2273
2010-05-18Migrations for SQLite converted to new formatAlexRa46-709/+828
2010-05-18Converted MySQL migration history to the new formatAlexRa79-1008/+1228
Replaced all NNN_StoreName.sql migration resources with a more readable, single-file-per-store
2010-05-18Added MySqlMigrations.cs (supports stored proc/funcs)AlexRa1-0/+85
Uses MySqlScript class to correctly run proc/func definitions that need delimiter change. Requires MySql.Data.dll 6.2 or later.
2010-05-18Migration.cs supports single-file migration history formatAlexRa1-104/+233
Scans for migration resources in either old-style "scattered" (one file per version) or new-style "integrated" format (single file "Resources/{StoreName}.migrations[.nnn]") with ":VERSION nnn" sections). In the new-style migrations it also recognizes ':GO' separators for parts of the SQL script that must be sent to the server separately. The old-style migrations are loaded each in one piece and don't support the ':GO' feature. Status: TESTED and works fine in all modes!
2010-05-18Massive bugfix in MSSQLEstateData (now works!)AlexRa1-49/+41
2010-05-16MS SQL migrations converted to the new formatAlexRa77-2008/+2273
2010-05-16Migrations for SQLite converted to new formatAlexRa46-709/+828
2010-05-16Converted MySQL migration history to the new formatAlexRa79-1008/+1228
Replaced all NNN_StoreName.sql migration resources with a more readable, single-file-per-store
2010-05-16Added MySqlMigrations.cs (supports stored proc/funcs)AlexRa1-0/+85
Uses MySqlScript class to correctly run proc/func definitions that need delimiter change. Requires MySql.Data.dll 6.2 or later.
2010-05-16Migration.cs supports single-file migration history formatAlexRa1-104/+233
Scans for migration resources in either old-style "scattered" (one file per version) or new-style "integrated" format (single file "Resources/{StoreName}.migrations[.nnn]") with ":VERSION nnn" sections). In the new-style migrations it also recognizes ':GO' separators for parts of the SQL script that must be sent to the server separately. The old-style migrations are loaded each in one piece and don't support the ':GO' feature. Status: TESTED and works fine in all modes!
2010-05-09OK, this really fixes it, I promise.Diva Canto1-2/+2
2010-05-09Yey for unit tests. The previous commit had a couple of bugs on SQL ↵Diva Canto2-3/+3
statements. Fixed here.
2010-05-09* Fixed spamming the assets table with map tiles. The tile image ID is now ↵Diva Canto8-9/+36
stored in regionsettings. Upon generation of a new tile image, the old one is deleted. Tested for SQLite and MySql standalone. * Fixed small bug with map search where the local sim regions weren't found.
2010-05-09Add Delete handler to SQLite (NG)Melanie1-15/+16
2010-05-09Implement the "delete" path for assets. Adds a new option to allow remote ↵Melanie6-1/+34
asset deletion in robust handler.
2010-05-09Add a field asset_flags and a corresponding enum to the asset database. ThisMelanie2-3/+10
CHANGES THE ASSET SERVER PROTOCOL and means you CAN NOT MIX PRIOR VERSIONS WITH LATER ONES. It may also eat your babies, yada, yada, yada. The usual cautions for migrations to the assets table apply. Coding: Can not guarantee nut free.
2010-05-07These files are part of the GridUserService write-up.Diva Canto3-0/+94
2010-05-07GridUserService in place. Replaces the contrived concept of storing user's ↵Diva Canto10-228/+25
home and position info in the presence service. WARNING: I violated a taboo by deleting 2 migration files and simplifying the original table creation for Presence. This should not cause any problems to anyone, though. Things will work with the new simplified table, as well as with the previous contrived one. If there are any problems, solving them is as easy as dropping the presence table and deleting its row in the migrations table. The presence info only exists during a user's session anyway. BTW, the Meshing files want to be committed too -- EOFs.
2010-05-04Fixed: migration #2 for SQLite. Problem was that ATTACH cannot be done ↵Diva Canto1-3/+2
inside a transaction.
2010-05-04Allow regions to get the list of the other regions in the estateMelanie Thielker1-1/+30
2010-05-03Refix the fixMelanie Thielker1-1/+1
2010-05-03Add folder version incrementing to XInventoryService. Fixes offline giveMelanie Thielker1-0/+31
for avatar->avatar
2010-05-02Switched everything to XInventory by default. The old Inventory is still ↵Diva Canto3-1/+48
there for now, in case bugs pop up with XInventory.
2010-04-30minor: eliminate more debug Console.WriteLines, convert one to logging insteadJustin Clark-Casey (justincc)3-3/+11
2010-04-30take out some debug logging in the sqlite db adaptorJustin Clark-Casey (justincc)1-3/+3
2010-04-30rename SQLiteNG to SQLite and SQLite to SQLiteLegacyJustin Clark-Casey (justincc)70-422/+423
this seems the least evil way forward since mono 2.6 and later will see increasing usage, and this only works with what was SQLiteNG MAC USERS WILL NEED TO CHANGE REFERENCES TO "OpenSim.Data.SQLite.dll" to "OpenSim.Data.SQLiteLegacy.dll" in OpenSim.ini and config-include/StandaloneCommon.ini (if using standalone) See the OpenSim.ini.example and StandaloneCommon.ini.example files for more details This commit also temporarily changes unsigned ParentEstateID values in the OpenSim.Data.Tests to signed temporarily, since the new plugin enforces creation of signed fields in the database (which is what the SQL actually specifies). And change data columns in sqlite is a pita.
2010-04-28Refactoring in Migration.cs: "using()" instead of explicit Dispose()AlexRa1-52/+56
This ensures that 'cmd' gets disposed on errors
2010-04-28Fixed comments in Migration.cs: wrong argument order (no change to code)AlexRa1-2/+2