summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_installer.php
AgeCommit message (Collapse)Author
2009-10-04Revert "Create a gallery::plugin_path which returns the appropriate path to ↵Tim Almdal
the module or theme. This checks for the existence of an application/modules or application/themes first." This reverts commit e1e1461a77caf5bff457927f098366497de6ffff.
2009-10-04Create a gallery::plugin_path which returns the appropriate path to the ↵Tim Almdal
module or theme. This checks for the existence of an application/modules or application/themes first.
2009-09-30Add functionality to activate sidebar blocks when the module is activated ↵Tim Almdal
and deactivate the sidebar blocks when the module is deactivated.
2009-09-30Set the gallery version to 15 and provide upgrade processing to set the ↵Tim Almdal
default sidebar.
2009-09-28Clean up upgrader for version 14. Put {} around table name,Bharat Mediratta
capitalize reserved words, use single quotes in the query to avoid escaping the double quotes, remove table alias.
2009-09-27Change gallery installer to do a direct update to the database, preppending ↵Tim Almdal
gallery_graphics:: to each of the defined rules operations
2009-09-27This path requires the upgrader to be run and applies the following changes:Tim Almdal
* moves the composite method back into core * requires that the operation be fully qualified i.e. gallery_graphics::resize * caches the graphics rules on each request
2009-09-27Fix one more place in the installer where we referring to the old defaultBharat Mediratta
theme names. Update installer.sql
2009-09-24Forgot to change the defaults theme names on initial install... DuhTim Almdal
2009-09-24Oops, forgot to change the install version number to match the upgrade ↵Tim Almdal
version number
2009-09-23set the version number to 13, so we will update the default themes in the ↵Tim Almdal
gallery vars
2009-09-21Revert "* Move the captured field into the exif module where it is created ↵Tim Almdal
and populated." This reverts commit a00619b812393cf73d1c188af7961af820d36185.
2009-09-21Revert "If captured had been used for any sort orders, reset back to weight"Tim Almdal
This reverts commit c01e467466eff51926108d030f21385179fa24d2.
2009-09-21If captured had been used for any sort orders, reset back to weightTim Almdal
2009-09-20* Move the captured field into the exif module where it is created and ↵Tim Almdal
populated. * Create a new API event get_sort_fields that allows modules to contribute new sort fields that they manage. the only condition is that the module needs to add it to the item table. * Changed g2_import to call this api to get the allowable sort fields * Changed album::get_edit_form to call this new api to get the available sort fields Partial fix for ticket #627, as the Capture date is not available until the exif module is installed.
2009-09-17Mark permission's display name for translationAndy Staudacher
2009-09-08Amend the v12 installer to empty out the relative_url_cache andBharat Mediratta
relative_path_cache columns.
2009-09-07Add support for a per-item "slug" which will be the user-visible urlBharat Mediratta
component for that given item. Album hierarchies are represented by nested slugs. By default, we convert the filename to a slug when you create an album, photo or movie.
2009-08-29Fix for ticket #628:Tim Almdal
1) increased gallery module version to 11 2) added image_sharpened parameter to the gallery module 3) sharpen all resizes.
2009-08-27Remove 'ENGINE=InnoDB' specification from tables that we create. UseBharat Mediratta
the system's default table specification. Fixes ticket #597.
2009-07-29Bump the gallery version to 10 in install()Bharat Mediratta
2009-07-29Remove some scary debug code.Bharat Mediratta
2009-07-30Fix for ticket #576Tim Almdal
Add a weight index to the item table and changed the retrieval of the maximum weight to select weight from items order by weight desc limit 1. Upgrades the gallery module to version 10 Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-07-25Rename columns that use reserved SQL words : items.left and items.rightRomain LE DISEZ
2009-07-22Upgrade code to migrate the ACL from integer to boolean.Romain LE DISEZ
Related to 719c59e0402464a0e2b14915f6d10218ff5d4729
2009-07-14Move the gallery version out of a module variable and into a constantBharat Mediratta
in the gallery helper. This will let us bump the version without having to bump the gallery module number.
2009-06-28Set the gallery module version to 6 in install() (missed this in my last ↵Bharat Mediratta
change). Refresh the install.sql.
2009-06-28Modify the cache table to make id the primary key for consistency withBharat Mediratta
other gallery 3 tables. Update the driver to match, add more upgrader code, update the installer block and change the gallery module version to 6.
2009-06-28Tweak the cache implementationBharat Mediratta
1) Drop the *_modified key, we don't really need it. The modification date is not relevant to our browser caching strategy. 2) Fix multiple issues with the Expires header and just hardcode it to the biggest possibly value for code clarity. 3) print the $content out directly instead of using fwrite 4) Minor cleanups in the installer.
2009-06-28Change the cache column of the caches table to a large blob. This fixes ↵Tim Almdal
ticket #485 and gives us the extra adavantage of not having to serialize the data (as the database driver handles that for us)
2009-06-27Update the version number and upgrade method for gallery to reflect the ↵Tim Almdal
addition of the cache table.
2009-06-23Add a new "show credits" check box in the theme options so that youBharat Mediratta
can disable any module credits if you want. Update the theme to obey it.
2009-06-23Refactor the install/upgrade code to be more flexible.Bharat Mediratta
Add xxx_installer::upgrade($version) method so that upgrade stanzas are separate from install stanzas. In the old code, to do an upgrade meant that you had to re-evolve everything from the initial install because we'd step through each version's changes. But what we really want is for the initial install to start off in the perfect initial state, and the upgrades to do the work behind the scenes. So now the install() function gets things set up properly the first time, and the upgrade() function does any work to catch you up to the latest code. See gallery_installer.php for a good example.
2009-06-20Fix a bug in gallery_installer where on an initial install we wereBharat Mediratta
only implementing schema version 1. This caused install.sql to be populated from version 1 which meant that after install you'd have to run the upgrader. No harm done, and the pattern is fixed for the future. Alphabetize the tables so it's easier to find stuff.
2009-06-12Move date/time format strings into a setting and bump the galleryBharat Mediratta
module to version 2. First test of our upgrade code!
2009-06-05change the version to beta 1Bharat Mediratta
2009-05-29Move credits message into a variable, which can be changed in Admin >Bharat Mediratta
Settings > Advanced. It's stored in the variable as an internationalized string and localized at output time.
2009-05-27Fix a typo in the class nameBharat Mediratta
2009-05-27Update all references to the core application to now point to theBharat Mediratta
gallery module. This type of mass update is prone to some small bugs.