Commit Graph

73 Commits

Author SHA1 Message Date
Bharat Mediratta
c8a8097ef2 Gallery module version 23, with the failed_logins table. 2010-01-30 20:40:28 -08:00
Bharat Mediratta
45cdac973d Oops, somebody (me?) forgot to update the gallery module version
number in gallery_installer::install() so the install.sql was out of
sync.
2010-01-29 14:06:36 -08:00
Bharat Mediratta
b6322b1c9f Updated for model based validation. We must now provide a placeholder
email address for the admin user, since one is required for all users.
2010-01-28 21:31:54 -08:00
Tim Almdal
3ab6c4915a Fixes ticket #671.
In the graphics_rules table height and width set the maximum height and width
values and should be equal.  Initially, the height on the resize target rule was
less than the height, which artificially constrained images in portrait mode.

**Note"" this fix requires an upgrade to version 22.  All the resizes will be flagged
dirty.
2010-01-11 10:42:39 -08:00
Bharat Mediratta
df001700dd Don't enable the rest module by default yet; we should make sure that
we do a more thorough security audit on it first.
2010-01-01 12:17:04 -08:00
Tim Almdal
1d42d5533a Change the installer so that the rest module is automatically installed in new installations. 2010-01-01 09:55:06 -08:00
Bharat Mediratta
8fe7bb6cf6 Use NULL instead of actual values in the vars table, so that var
tweaks result in smaller diffs.
2009-12-05 21:20:30 -08:00
Bharat Mediratta
1f3567ec04 Update the gallery module to version 21 in the installer. 2009-12-05 21:08:10 -08:00
Tim Almdal
6fd1e2af1f Revert "Update the installer to reflect the new location of the theme related options."
This reverts commit 678e22996d.
2009-11-19 11:43:53 -08:00
Tim Almdal
678e22996d Update the installer to reflect the new location of the theme related options. 2009-11-18 15:37:51 -08:00
Tim Almdal
0fe32a61f6 Standardize the name of the blocks. 2009-11-13 13:56:05 -08:00
Tim Almdal
def88149cc Undo using the md5 hash of the module name and block_id, so duplicate blocks are no allowed again 2009-11-13 09:14:39 -08:00
Tim Almdal
a5a8cfd1bc Re-generate the install.sql so that the keys of the block lists are an md5 hash of the module_name:block_id. Also change the packager so we delete the _cache variable for the module gallery not core. 2009-11-12 13:14:02 -08:00
Tim Almdal
79f700ef9f Change the keys of the block arrays in block manager to be a md5 hash of module_name:block_id. This allows easier lookup of blocks to remove when modules
are being deactivated. Change the module activation/deactivation to call (activate|deactivate)_blocks instead of just the sidebar blocks.  This insures
that when a module is deactivated any admin dashboard blocks are removed as well the site sideboard blocks. Fix for ticket #876.
2009-11-12 13:13:34 -08:00
Tim Almdal
599cfab3b3 Update the install.sql to reflect the current version number(16) and the refactoring of the user module into an idnetity provider 2009-10-26 10:05:54 -07:00
Chad Kieffer
3573544104 Poor man's merge. Note to self, git pull before working. Next pound the steps to merge into your head. 2009-10-23 05:41:50 -07:00
Tim Almdal
312811c783 Change the default install.sql such that the owner id of root album is the defined admin (id = 2) 2009-10-21 08:07:49 -07:00
Tim Almdal
c97a88599e Change gallery installer to do a direct update to the database, preppending gallery_graphics:: to each of the defined rules operations 2009-09-27 17:55:48 -07:00
Tim Almdal
467b74c310 This path requires the upgrader to be run and applies the following changes:
* 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-27 15:24:51 -07:00
Bharat Mediratta
7432858420 Fix one more place in the installer where we referring to the old default
theme names.

Update installer.sql
2009-09-27 11:25:03 -07:00
Tim Almdal
9d76797b17 Changed the search module installer to explicitly specify MyISAM as the database type. Changed the packager to not remove the engine specification if the table is search_records. Fixes Ticket #774 2009-09-16 22:23:32 -07:00
Bharat Mediratta
2c9447bc1a Update to gallery module v12. 2009-09-08 09:59:27 -07:00
Bharat Mediratta
d26f9147a0 Updated for modules/gallery version 11. 2009-09-01 21:15:50 -07:00
Bharat Mediratta
4828db003f Remove 'ENGINE=InnoDB' specification from tables that we create. Use
the system's default table specification.  Fixes ticket #597.
2009-08-27 15:47:54 -07:00
Bharat Mediratta
9d2420e789 Updated for gallery v10 2009-07-29 16:45:26 -07:00
Andy Staudacher
482e223b60 Updating install.sql with the packaging script, basically re-adding the charset (utf8) expressions that were removed by merging in rledisez's left/right -> left_ptr/right_ptr changes. 2009-07-26 23:58:46 -07:00
Romain LE DISEZ
23bb6eb7e3 Rename columns that use reserved SQL words : items.left and items.right 2009-07-25 19:06:54 +02:00
Bharat Mediratta
e3a1bb2c72 Updated version of installer sql:
- gallery_version is gone
- access related columns are now binary (Postgres)
- for some reason we've reverted back to the /*!40101*/ style settings
  in mysqldump.
2009-07-23 16:38:47 -07:00
Romain LE DISEZ
350c1b0267 Use BOOLEAN instead of integer to describe the permissions :
- DENY = false
 - ALLOW = true
 - UNKNOW = null  (for intent only)
 - INHERIT = null (for cache)

Upgrade is not included for now.
(cherry picked from commit 719c59e040)
2009-07-23 09:11:55 -07:00
Bharat Mediratta
6281ed03d5 Turn off extended inserts when creating install.sql so that it's
easier to see what's changed.
2009-07-11 05:36:31 -07:00
Bharat Mediratta
9f753a53f0 MySQL 5 generates backwards compatible code-containing comments so:
SET character_set_client = @saved_cs_client;

becomes:
  /*!40101 SET character_set_client = @saved_cs_client */;

for MySQL 4.0.1-01 and newer.
2009-07-11 05:30:39 -07:00
Bharat Mediratta
5b2c08d797 Set the gallery module version to 6 in install() (missed this in my last change).
Refresh the install.sql.
2009-06-28 17:37:14 -07:00
Bharat Mediratta
388f7ba310 Updated for module upgrades:
gallery 2 -> 3
  comment 1 -> 2
2009-06-27 21:12:37 -07:00
Bharat Mediratta
bfca0c7903 Refactor the install/upgrade code to be more flexible.
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-23 12:00:49 -07:00
Bharat Mediratta
acd54fefda Fix a bug in gallery_installer where on an initial install we were
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-20 01:24:21 -07:00
Bharat Mediratta
2a9335f71b Update version to beta 1 2009-06-05 17:45:42 -07:00
Bharat Mediratta
c94c11eb3e Normalize the random values used in the blocks_dashboard_xxx vars so
that install.sql is more stable.
2009-06-01 00:22:30 -07:00
tim almdal
120088140c Move the code that was in the scaffolding to package the initial mySql database and var directory to a seperate standalone file in the installer. This will save the current database environment and restore it when the packaging is complete 2009-05-29 23:34:24 -07:00
Bharat Mediratta
60d1bbc2d6 Move credits message into a variable, which can be changed in Admin >
Settings > Advanced.  It's stored in the variable as an
internationalized string and localized at output time.
2009-05-29 20:24:42 -07:00
Bharat Mediratta
84ce0cdefd Normalize root update time in the installer
Rebuild install.sql
2009-05-27 19:59:54 -07:00
Bharat Mediratta
e8cd6bd5e7 Manually updated to change 'core' to 'gallery' 2009-05-27 16:31:10 -07:00
Bharat Mediratta
7aed923908 Restructure the module lifecycle.
Install: <module>_installer::install() is called, any necessary tables
are created.

Activate: <module>_installer::activate() is called.  Module
controllers are routable, helpers are accessible, etc.  The module is
in use.

Deactivate: <module>_installer::deactivate() is called.  Module code
is not accessible or routable.  Module is *not* in use, but its tables
are still around.

Uninstall: <module>_installer::uninstall() is called.  Module is
completely removed from the database.

Admin > Modules will install and activate modules, but will only
deactivate (will NOT uninstall modules).
2009-05-26 05:28:59 +00:00
Bharat Mediratta
0536025ff6 Add a default image quality level. There's no UI for it, except Admin
> Settings > Advanced.  The default is 75.
2009-05-20 04:04:50 +00:00
Bharat Mediratta
1968057a90 Add var/tmp 2009-05-17 04:44:16 +00:00
Bharat Mediratta
627e83adc1 Cache variables in core._cache so that we can retrieve them all in a
single query.  In most cases, we were fetching 4-5 variables per page
load, so this is 2-3x faster.
2009-05-14 03:56:29 +00:00
Bharat Mediratta
aaff4a7886 Introduce a relative_path_cache column in the items table. This lets
us avoid doing lots of MPTT lookups to find the parent path when we're
trying to generate thumbnails, etc.  Invalidate the cache at all the
right times.  This greatly reduces our query count on album page views.

This fixes ticket #40.
2009-05-14 02:14:46 +00:00
Bharat Mediratta
c52a231bc0 Create a new "add" permission and require it at the controller level
when adding photos/movies/albums
2009-05-13 18:03:50 +00:00
Bharat Mediratta
d049e406e0 updated to reflect tinyint(2) -> smallint(6) change 2009-05-13 04:45:25 +00:00
Bharat Mediratta
fc6bdbbbc8 Grab photo capture date and captions from EXIF/IPTC data.
- Add a "captured" column to the items table.
- Pull the DateTime EXIF field and put it into the captured column
- Pull the Caption EXIF & IPTC fields and put them into the description
  field if there was not already a value there
2009-05-07 01:18:31 +00:00
Bharat Mediratta
e382ec748e Root album weight is now 1; Organize module is auto-activated; search_record has a key on item_id 2009-04-28 20:54:05 +00:00