Commit graph

74 commits

Author SHA1 Message Date
3d5af261d2 Solved the Gordic Layout Images Query (GILQ); at least for Antville.org :) 2008-05-07 15:19:12 +00:00
ffd3ab0196 Removed or disabled creation of index keys which are either redundant (e.g. due to a compound index) or inefficient (due to segmentation ratio less than ~20%) 2008-05-07 14:05:10 +00:00
5d02e4fcca Removed redundant semicolon 2008-05-07 10:05:17 +00:00
761efff044 Switched to new method for converting big tables: instead of deleting records from the source table a "colum < $min and colum >= $max ... order by column" where clause is added and $min and $max are automatically replaced with appropriate numbers by the traverse() method 2008-05-07 09:01:18 +00:00
c6877c485a * Extended traverse() method to accept a third argument specifying the column which can be used in a "[column] > x and [column] < y" where clause to gain speed
* Added potential fix for upgrading the calendar layout
 * Disabled fix for that strange image record causing duplicate key errors when trying to set AV_IMAGE to auto_increment (not necessary anymore because the whole table contents are copied to a new table now)
 * Removed commented, obsolete code
2008-05-07 08:04:22 +00:00
61bec959cc Removed second argument from traverse() call in convert.layoutImages() since we do not remove the converted images from the old database anymore 2008-05-06 21:54:06 +00:00
9cdb41fad9 * Fixed really stupid bug causing root layout images to disappear from the database just right after it has been copied to one site layout. (5€ fine into the pillock cash box!)
* Fixed column name for site id of a root layout image
2008-05-06 21:44:21 +00:00
11fdd18af9 For now, do not create tables with or convert them to UTF-8 encoding / collation (there seems to be too much trouble ahead with MySQL 4.1) 2008-05-04 16:33:50 +00:00
4805dfc44f * Added check for undefined description in File conversion
* Fixed column name used for image description
 * Set creator and creation date of image layouts to site creator and creation date, resp.
 * Fixed SQL statement for Elise's version 4 server (hopefully there is not more like this to come...)
2008-05-04 14:32:13 +00:00
54961af438 * Re-enabled conversion of fileName for AV_FILE table
* Fixed conversion of Story mode and status 
 * Removed quote() call in execute() calls since quoting is done in the value() method already
 * Removed obsolete code for tag conversion
2008-05-02 22:04:47 +00:00
a4a4d8a956 * Fixed faulty conversion of layout images for inactive layouts with a hilarious select statemtent (fingers crossed!)
* Removed obsolete code
2008-05-02 13:45:55 +00:00
ecc7e81624 Applied similar optimization for AV_IMAGE table as was done for AV_TEXT 2008-05-02 00:27:18 +00:00
2bbb9661c0 Refactored the conversion of the AV_TEXT table to decrease the time consumed by the whole update:
* Each record gets read from AV_TEXT, converted and directly inserted into the newly created content table
 * Each converted record is immediately deleted from AV_TEXT (hopefully, the select statements get even faster the less records are stored in AV_TEXT)
 * tag_hub is updated, too, during the conversion
 * Improved execute() method to allow simple variable substitution
 * Added values() method for easy conversion of JavaScript values to MySQL compatible syntax
 * Added "noOffset" argument to traverse() method to allow switching off the automatically generated "offset ..." MySQL statement
2008-05-01 21:01:18 +00:00
e0de7701d2 Fixed bug preventing images of the parent layout to be merged into inactive layouts 2008-04-30 12:33:23 +00:00
24290006d5 Trying another fix for constantly getting exceptions when moving/copying files around in antville.org setup 2008-04-30 12:17:04 +00:00
2498e5c396 Still fiddling with exceptions when updating antville.org :( 2008-04-30 11:36:46 +00:00
073b419b14 Added checks to prevent unnecessary exceptions 2008-04-30 11:14:54 +00:00
7d1e5a12a5 * Fixed method name for root conversion
* Modified conversion of root layout skins (not enabled, yet)
2008-04-29 15:06:43 +00:00
dc72b7d258 Added convert.root() method to convert the site with the rootId defined in app.properties 2008-04-29 14:16:37 +00:00
683a497f34 Fixed conversion of layout images:
* Correctly copy all layout image properties from AV_IMAGE to new image table
 * Exclude any parent layout's image which was replaced by the user (ie. has the same name as a layout image in the current layout)
 * Correctly copy thumbnails from parent layout to current layout
2008-04-29 13:22:13 +00:00
b521110020 (Hopefully) fixed ugly hidden bug that prevented some sites from getting a full layout 2008-04-28 12:20:35 +00:00
3d7172c89c * Added SQL code to set the default site's name to "www" to make sure the necessary static files will be found
* Updated code according to changes in main application
2008-04-28 10:19:18 +00:00
b69b3e3cd8 * Convert / create tables using utf8_bin collation
* Fixed conversion of inherited layout images
2008-04-23 21:37:27 +00:00
4a59353b6f Fixed bug introduced in latest commit producing a directory named after the file name 2008-04-22 13:13:37 +00:00
3c55710d08 Fixed bug caused by non-existing directory for default layout 2008-04-22 13:09:11 +00:00
ce6f218951 * Added conversion for inherited layout images (almost forgotten!)
* Added output of (log) messages showing durations of retrievals and updates
2008-04-22 12:58:39 +00:00
fb6d130603 Enabled SQL statements for removing legacy data 2008-04-21 20:49:30 +00:00
eefa9ed990 * Removed grouping in SQL for converting topics to tags
* Fixed SQL for copying the contents of AV_IMAGE to new image table 
 * Removed trailing semicolons after closing curly brackets for good (hopefully :)
2008-04-21 13:50:21 +00:00
89fbeb5715 Added code to rename default layout directory to "layout" 2008-04-21 08:47:19 +00:00
86c3ba0ad2 Good morning, stupid typo! 2008-04-21 07:52:40 +00:00
103b45f72e * Fixed stupid typos in recent SQL changes
* Check if an image description exists before writing it to metadata
2008-04-21 07:49:25 +00:00
fe969537fd * Replaced calls for id() by preceding/subsequent alter statemtents en/disabling auto_increment on the primary key
* Added key for name in tag table
 * Decreased bulk size of select statements
 * Moved release() call inside bulk loop again in traverse() method
2008-04-20 22:34:17 +00:00
363b0b6dc2 Added constraint to not delete layout images at all when reducing the image table size for testing purposes 2008-04-20 17:30:26 +00:00
4071fbeee0 * Fixed some column sizes according to Antville.org's needs
* Fixed syntax error
 * Added delete statements for AV_TEXT and AV_IMAGE to reduce size of database for testing purposes
2008-04-19 20:06:28 +00:00
2e6cd1d522 Modified conversion code for AV_IMAGE and AV_TEXT still trying to gain more speed: now new tables are created and the records are copied from the old table 2008-04-18 23:05:11 +00:00
fad6d218a9 * Merged alter statements going over multiple lines into one single statement (should be faster)
* Trying out new way to drop the index keys from AV_TEXT by creating the content table with its index keys from scratch and copying data from AV_TEXT
 * Fixed bug in error handling preventing output and termination
2008-04-18 17:03:29 +00:00
d5199708a4 Added global clean() method: "I'm in ur string zapping all teh gremlinz!" 2008-04-18 13:39:44 +00:00
5de56bbaca Check skin source name before trimming 2008-04-18 13:10:05 +00:00
b9e3311486 * Moved locks on tag and tag_hub tables to corresponding SQL scripts
* Renamed write() method to msg()
2008-04-18 12:35:21 +00:00
a7b9e0b668 * Trying different arrangement of SQL statements to gain speed
* Fixed typo
2008-04-18 12:06:39 +00:00
ba68c4acf3 * Added table locks
* Rearranged order of statements to (hopefully) increase speed
2008-04-18 09:47:55 +00:00
95b0ec404b Only call finalize() if init() was called before 2008-04-18 09:46:00 +00:00
134a384ab8 Re-enabled logging of update statements 2008-04-17 20:52:14 +00:00
d27f6fe93d * Modified output: log() pipes to app.log and write() only returns short feedback over the web
* Moved blinking status indicator into separate scheduler
2008-04-17 20:35:56 +00:00
0a695bf6a0 Fixed updater to reliably output more meaningful information as well as to correctly exit on failures and when finished 2008-04-17 16:14:18 +00:00
e337cf0569 Fixed log and debug output 2008-04-17 13:51:11 +00:00
712febb8dd * Decreased size of log to requests of the current date
* Fixed conversion of AV_SYSLOG: needs auto_increment in log
2008-04-17 07:10:56 +00:00
5264ec3987 * Added call for trim() before writing a skin source to file
* Added SQL to remove obsolete indexes and add new ones
  * Finally enabled conversion of AV_ACCESSLOG table (still not finished, though)
  * Cleaned up SQL code
2008-04-16 23:14:38 +00:00
b1b97ce864 * Removed extra file name handling for images from compatibility layer (which is very nice!)
* Improved image data conversion in updater to only create thumbnail information if there actually is a thumbnail available
 * Fixed some minor issues introduced with the latest changes
2008-04-15 15:19:42 +00:00
63b308a3ef * Excluded content of Message.skins et al. from copying to site layouts
* Added final "OK, good" message to update log
 * Removed obsolete SQL statements
2008-04-14 16:43:36 +00:00