37 Commits
Author SHA1 Message Date
Kevin Cozens b21c7adff1 Corrected schema and added migrations for the popularplaces table.
Region category returned by Datasnapshot module is a string and not an integer.
2018-05-14 15:41:08 -04:00
Kevin Cozens 064b845bb6 Added IF NOT EXISTS to CREATE TABLE statements in ossearch.sql (See issue #3) 2017-04-21 15:11:04 -04:00
Kevin Cozens 3a890f1b58 Fixed case error in references to regionUUID field in several tables 2017-04-21 14:45:54 -04:00
kcozens 4771cd90aa Added 'parcelUUID' field to events table.
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@208 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2014-03-02 20:36:11 +00:00
kcozens 741c62175c Updated SQL file to create tables using UTF-8 charset and collation.
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@207 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2014-03-01 00:01:39 +00:00
kcozens 7aaa6f8dc5 Fixed time limits of event searches and include in-progress events.
Event searches for a given day now take timezone into account to get
to start of day. Updated README with mention of the timezone usage.
Updated database structure, migration file, and the pre-compiled DLL.


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@202 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2013-07-17 20:47:16 +00:00
kcozens f4c7f1e739 Updated SQL files to use char(36) for all UUID fields.
Corrected upgrade instructions in the README file.


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@200 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2013-06-23 15:43:43 +00:00
kcozens 3bd3b6f1db OpenSimSearch/Modules/SearchModule/OpenSearch.cs
- Use enum value instead of hard-coded number for land sales

webroot/sql/ossearch.sql
- Changed dateUTC and covercharge fields in events table.

webroot/sql/update-events-classifieds.sql
webroot/sql/update-hostregister.sql
webroot/sql/update-parcelsales.sql - Deleted these files

webroot/sql/ossearch-migrations.sql
- Added this file which lists all search database migrations organized by
  SVN version. This makes it much easier to see what has changed from one
  version of code to the next.

webroot/query.php
- Search by date now works when looking for current and upcoming events, or
  when searching for dates on a given day.
- Provide a default value for category when returning event info to avoid a
  PHP error about use of uninitialized variable.

README
- Added comments about event listings and events database table.


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@172 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2011-11-16 22:31:41 +00:00
kcozens 04dc2778ac This commit fixes problems affecting Places search in a viewer.
webroot/sql/ossearch.sql:
- Added default value to 'mature' column.

webroot/sql/update-parcelsales.sql:
- Fixed syntax of SQL command that adds 'mature' column.

webroot/parser.php:
- Save region category in parcels table.

webroot/query.php:
- Fixed generation of SQL query used to search to parcels table.


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@153 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-09-06 21:33:07 +00:00
kcozens 4999fd0771 Fixed queries for classifieds, events, land sales, and places.
Handle region type for classifieds, events, land sales, and places.
Generation of SQL queries now handle cases where OR expressions
are used to select one of several values for a column based on
flags in addition to AND expressions in WHERE.
Corrected the size of several columns in the database schema.


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@149 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-09-04 14:30:24 +00:00
kcozens 8d474acd04 Forward port of changes in versions 138 through 141 of the opensim_069 branch.
r141:
OpenSimSearch/Modules/SearchModule/OpenSearch.cs:
- Added comments about the origin of some of the constants used.

OpenSimSearch/OpenSim-addition.ini.example:
- Added note about extra lines to add to Modules section of OpenSim.ini file.

r140:
Eliminated the need to call fsockopen() to check if host is online.

r139:
Renamed lastcheck to nextcheck in hostsregister table to better reflect
its usage. Removed HTML tag from parser.php that got left in by mistake.
In register.php, reset nextcheck and checked when a host registers.

r138:
The data parser was getting stuck on a single entry in hostsregister table.
The lastcheck time wasn't enough to determine the next host to contact.
A column was added to hostsregister to track which hosts have been checked.
A host will not be checked again until all others have been checked.

CheckHost() routine was cleaned up. Always update hostsregister. GetURL()
now waits up to 10 seconds for connection and up to 30 seconds for data.


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@142 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-08-30 02:04:39 +00:00
kcozens 47c00a0f35 webroot/parser.php:
- Capitalize keywords in SQL queries.

webroot/sql/ossearch.sql:
- Change default for mature column of parcelsales table to PG.

webroot/sql/update-parcelsales.sql:
- Added this file to update existing an parcelsales table.


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@126 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-08-03 02:07:40 +00:00
fly-man- b527c9e386 Updated the sql/ossearch.sql to the latest. Standalone update file
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@110 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2009-01-24 15:03:34 +00:00
fly-man- b1c2821c04 Update for the hostsregister table, making sure that a region doesn't make the file spit out messages.
Please update your database with the update-hostregister.sql for this to work

(BETA test, do NOT use this in production systems)

git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@98 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-11-05 20:23:01 +00:00
fly-man- cb936a3c2a To update a existing database, use update.sql else for a new database use ossearch.sql
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@91 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-10-26 21:15:26 +00:00
melanie 5ddcb883d3 Convert default to InnoDB
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@69 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-10-18 14:55:00 +00:00
melanie b3e20009fb Reintroduce lost changes, cleanup
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@68 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-10-18 14:53:44 +00:00
fly-man- 9eac93cedd Patches for SQL and WebQuery pt 2
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@65 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-10-18 14:09:40 +00:00
melanie d2a6ccaa83 Code cleanup, roll-forward to r51-base
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@60 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-10-15 22:04:01 +00:00
melanie e9a30b092c Revert to 42 to recover from formatting mess
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@53 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-10-15 20:30:13 +00:00
melanie 7a059d8897 Fix event search
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@45 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-10-12 11:01:14 +00:00
fly-man- e7e385357c SQL update for Event Search, might break things in your database so be careful
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@44 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-10-12 00:11:15 +00:00
melanie a90ab7ec95 MySql and PHP update
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@38 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-10-11 08:45:02 +00:00
melanie e6904c6267 Schema update
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@36 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-10-11 07:31:04 +00:00
melanie 3d1235eae6 Update to new DataSnapshot module
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@30 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-10-11 00:36:36 +00:00
fly-man- bb16871a70 SQL update for Land Search, might break things in your database so be careful
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@25 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-10-06 01:31:32 +00:00
melanie 000709441a Add new infouuid field
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@22 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-10-05 16:42:36 +00:00
melanie 4af293e981 Add indices to MySQL table
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@18 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-10-05 04:44:07 +00:00
melanie 2dc868c123 Add dwell column
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@15 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-10-05 03:53:53 +00:00
melanie 14c283c7d7 Split estate user info into two fields
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@12 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-10-04 13:39:13 +00:00
melanie 67fe25e19d more refactoring for usablility in a real life situation
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@11 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-10-04 05:14:05 +00:00
melanie b0e4dcfcdb Add some more fields, rework code to preserve associaltions
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@10 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-10-04 04:59:41 +00:00
melanie 812c7dcd6e Complete and refactor parser
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@9 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-10-04 04:30:00 +00:00
fly-man- 16d2db22e6 Update to the Parser and made a basic CRON daemon that grabs 1 sim at a time and indexes it
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@6 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-09-19 19:05:06 +00:00
fly-man- d11ddc4d16 SVN updated with Parser that now checks for Host and Port that can be supplied by DB
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@5 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-09-18 19:56:47 +00:00
fly-man- db2acd3767 Initial Parser and database for parsing and putting into database.
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@4 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-09-17 22:26:37 +00:00
fly-man- 91094b9d0a Initial Proof of Concept done by registering a simulator at first and afterwards checking if the same simulator can be updated
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@3 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2008-09-15 21:31:13 +00:00