Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
183 commits
Select commit Hold shift + click to select a range
2d2e85f
vitorpc
phpedinei Nov 5, 2010
cb79d01
fix the model name in the controller and some corrections in indent…
vitorpacheco Nov 1, 2010
f224758
convert to dos (most files are in dos format)
rchavik Apr 6, 2011
bcea0b8
typo in column name
rchavik Apr 6, 2011
5d3e268
adding basic support for nivo-slider
rchavik Apr 6, 2011
44e1b4a
adding title + clearfix for photo upload area
rchavik Apr 6, 2011
1b1e704
display field type in admin_[add|index]
rchavik Apr 6, 2011
6fb6a35
title links to albums/edit
rchavik Apr 7, 2011
cb13f02
fix: button overlaps with upload-list
rchavik Apr 7, 2011
73976f3
selectively load jslibs based on settings
rchavik Apr 7, 2011
450c8bb
adding new settings in plugin activation
rchavik Apr 7, 2011
6f76fdc
configurable gallery parameters for each album
rchavik Apr 7, 2011
6b890e3
add 'rel' to support thumbs in nav (for future use)
rchavik Apr 7, 2011
384230d
add DDSlider support
Apr 25, 2011
5fedecf
Merge remote branch 'rainextra/slider' into slider
rchavik Apr 25, 2011
83bba6b
change line endings to UNIX
rchavik Apr 26, 2011
076426e
tabify
rchavik Apr 26, 2011
d260dac
remove trailing whitespace
rchavik Apr 26, 2011
9b242be
Merge pull request #2 from rchavik/slider
phpedinei May 14, 2011
b3d7518
Add:
May 24, 2011
b733d47
Merge pull request #3 from rchavik/whitespace
phpedinei May 27, 2011
0a7dc11
Edited webroot/plugin.yml via GitHub
phpedinei May 27, 2011
25ef008
make schema gallery
Jun 7, 2011
0b7f74f
add useDbConfig for gallery
Jun 7, 2011
202eae5
adding useDbConfig property
rchavik Jun 9, 2011
882aa57
typo
rchavik Jun 9, 2011
3349513
fix indentation level + remove php close tag
rchavik Jun 9, 2011
4d72fa3
support fancybox
Jun 22, 2011
0d6672e
Merge remote-tracking branch 'kahitam/schema' into next
rchavik Jun 29, 2011
26c5ed3
don't load the gallery javascripts in /admin
rchavik Jun 29, 2011
bfcc951
split into several helpers
rchavik Jun 29, 2011
cc4a2fd
fix: displaying description in title column + indentation
rchavik Jun 29, 2011
639e692
each supported gallery generates its own tag
rchavik Jun 29, 2011
5419cc3
Merge branch 'split-helpers' into next
rchavik Jun 29, 2011
aa44f04
allow separate directory per album via a behavior
rchavik Jun 29, 2011
bfd864a
enlarge column size
rchavik Jun 29, 2011
1f673d3
Merge remote-tracking branch 'rainextra/slider' into rainextra
rchavik Jun 29, 2011
bdcfb74
Merge remote-tracking branch 'rainextra/schema' into rainextra
rchavik Jun 29, 2011
39e8abd
fix broken merge for fancybox
rchavik Jun 29, 2011
ae89449
fix broken merge (pikachoose)
rchavik Jun 29, 2011
074b6cc
Merge branch 'rainextra' into next
rchavik Jun 29, 2011
61a1c4a
removing leftover submodule?
rchavik Jun 29, 2011
ff98242
Merge branch 'target-dir' into next
rchavik Jun 29, 2011
e27e70d
remove log()
rchavik Jun 29, 2011
2294353
defaults to Galleria when type is unspecified
rchavik Jun 29, 2011
611603a
append plugin name in ACOs. incompatible with croogo 1.3
rchavik Jul 6, 2011
dfc783c
indent + whitespace
rchavik Jul 6, 2011
ac263ac
remove obsolete methods since we're using schema
rchavik Jul 6, 2011
793e960
beforeActivation & beforeDeactivation is required
rchavik Jul 6, 2011
8ce36de
space hunt
rchavik Jul 7, 2011
2011092
fix: incorrect initializer in Ddslider helper
rchavik Jul 7, 2011
443bd59
fix: $options was never initialized
rchavik Jul 14, 2011
d806273
adding Containable
rchavik Jul 14, 2011
404d889
remove addAco for controller
rchavik Jul 14, 2011
b10af88
Set load galley on windows.load
Jul 15, 2011
317d731
Update
Jul 22, 2011
01a2165
Update:
Aug 3, 2011
c2abe38
ups.. ketinggalan 1 image
Aug 15, 2011
4181927
menu visibility
rchavik Aug 22, 2011
94d906a
miss string or numeric
Aug 23, 2011
509660b
set default option for pikachoose: once => true
rchavik Sep 16, 2011
6434185
init optimizer
Sep 21, 2011
c529909
Merge pull request #1 from kahitam/optimizer
rainextra Sep 21, 2011
be5cfb9
set generate optimize
Sep 21, 2011
19455f8
adjust optimize controller
Sep 21, 2011
9e7c453
clean up code
Sep 21, 2011
8f80ee0
adjust optimize quality setting
Sep 21, 2011
ed9f1d5
optimize moving to component
Sep 21, 2011
655d209
add gallery component
Sep 21, 2011
a6003b8
Merge branch 'optimizer' into integrations
Sep 21, 2011
7d40202
exlude thumb if generated
Sep 22, 2011
2d355d0
typo
Sep 22, 2011
b3fb91e
wording
Sep 22, 2011
1a11869
adjust optimize controller
Sep 22, 2011
be3f55c
thumb no resize
Sep 22, 2011
abe7ade
shell for generating
Sep 22, 2011
a3f2e70
set error message
Sep 23, 2011
81cf568
using end than array_reverse
Sep 26, 2011
5764a96
Merge remote-tracking branch 'origin/integrations' into next
rchavik Oct 10, 2011
e2541e8
set edit photo for admin
Oct 13, 2011
a6793e1
cek is ajax on before save
Oct 13, 2011
1fa2850
adjust view photo on admin
Oct 13, 2011
44e4a44
admin edit views
Oct 13, 2011
9bcae7d
add sql patch
Oct 13, 2011
b96dc68
rename via upgrade all
rchavik Oct 17, 2011
b817e9e
__*() upgrades
rchavik Oct 17, 2011
c93e829
additional file renames
rchavik Oct 18, 2011
917f2d3
more upgrade work
rchavik Oct 18, 2011
efd083d
fixing arguments for View::element()
rchavik Oct 18, 2011
57a38a3
Orbit support
rchavik Nov 1, 2011
262837f
rename plugin.yml to manifest.php
rchavik Nov 23, 2011
3726fd3
updating manifest + menus
rchavik Nov 23, 2011
af55592
fix cache config
rchavik Nov 23, 2011
e22a904
adjusting regex
rchavik Nov 23, 2011
7168cc5
adding $paginate property
rchavik Dec 1, 2011
8fb819c
updating plugin.json
rchavik Dec 27, 2011
37b82f3
fixing parent model class + visibility
rchavik Jan 17, 2012
33fbe17
photo admin_[index|edit]
rchavik Jan 17, 2012
5497d1b
adjust admin menu
rchavik Jan 17, 2012
15755c1
params, add new fields for Photo
rchavik Jan 17, 2012
98a7b4d
Merge branch 'next' into 2.0
rchavik Jan 17, 2012
8d13ceb
adding Photo.status
rchavik Jan 17, 2012
2e3d2fd
adding container for form buttons
rchavik Jan 17, 2012
bf90763
custom find to retrieve photos by album
rchavik Jan 17, 2012
f3311dd
link to photos/upload
rchavik Jan 17, 2012
1b8671a
adding Setting.title
rchavik Jan 20, 2012
140e6aa
adding Album config
rchavik Jan 20, 2012
41f06ab
use album config during upload
rchavik Jan 20, 2012
53706d0
incorrect Setting key name
rchavik Jan 20, 2012
598baba
set photofy on activation
Feb 8, 2012
37b366b
add photofy helper
Feb 8, 2012
da1c8ac
add photofy js + photofy default css
Feb 8, 2012
280621b
adjust admin page
Feb 8, 2012
761438e
add kenburn slider
Feb 14, 2012
03ce2fb
removing js and css asset
Feb 15, 2012
05628e0
skip assets when requested
rchavik Feb 15, 2012
0576507
let's try again
rchavik Feb 16, 2012
b10d0ad
change arguments
rchavik Feb 16, 2012
f9cfa34
adding weight column
rchavik Feb 17, 2012
d261e90
fix helper argument
rchavik Feb 17, 2012
a1b8d1a
shorten text
rchavik Feb 17, 2012
c39883f
strip tags
rchavik Feb 17, 2012
214a37c
strip tags
rchavik Feb 17, 2012
d322940
Update VOD styling
Mar 2, 2012
90eae4b
Add new Slider engine to Gallery
Mar 15, 2012
4cc3150
little adjusment to camera slider
Mar 15, 2012
710c4de
Put Camera slider theme style seperated
Mar 15, 2012
c822441
Update Image BG for TV
Mar 21, 2012
8010a8a
use CakeEvent
rchavik Mar 27, 2012
7e9c704
let's just fail
rchavik Mar 27, 2012
25e5945
hack to support 'fake upload'
rchavik May 2, 2012
f39c4d6
disable csrfCheck for ajax upload
Jul 6, 2012
01efb4e
fix: missing method and bogus data
rchavik Oct 3, 2012
f715848
adding validation rule
rchavik Oct 24, 2012
815c358
updating CS in bootstrap
rchavik Oct 24, 2012
d26b7d6
configurable useDbConfig
rchavik Oct 24, 2012
de5f2d4
cs fixes
rchavik Oct 24, 2012
fdb873f
rename locale -> Locale
rchavik Oct 24, 2012
b559ddd
utilize Imagine plugin for image processing
rchavik Oct 24, 2012
2dfdd1d
deleting source if Gallery.deleteOriginal = true
rchavik Oct 24, 2012
43ecf4e
fixes and style updates
rchavik Oct 24, 2012
0f2e44c
pagination does not work. removing for now
rchavik Oct 24, 2012
fa49d94
change to postLink
rchavik Oct 24, 2012
b572152
'apply' functionality + adding 'thickbox' class
rchavik Oct 24, 2012
b844297
rename to markdown
rchavik Oct 24, 2012
b3d5bd5
document about 1.5 and Imagine dependency
rchavik Oct 24, 2012
8595178
adding thickbox to dynamically added elements
rchavik Oct 25, 2012
4a97324
use thickbox's gallery feature
rchavik Oct 25, 2012
7138590
enable moveup|down by album
rchavik Oct 25, 2012
6c40cc6
adding url field for nivoslider
Oct 31, 2012
e472c3b
modified with HABTM for photos albums
Nov 22, 2012
b079389
updating views for 1.5.0
rchavik Dec 28, 2012
d6140be
set `master` during first upload
rchavik Dec 28, 2012
c9ea670
polaroid image style
rchavik Dec 28, 2012
a850915
CS fixes
rchavik Dec 28, 2012
01e512d
change default gallery directory
rchavik Dec 28, 2012
494093a
updating schema: adding created rename join table
rchavik Dec 28, 2012
dae6a67
fix habtm ordering
rchavik Dec 28, 2012
2d29ca0
Merge branch '2.1-habtm-updates' into 2.1
rchavik Jan 7, 2013
8a24fe9
change link into icon
rchavik Jan 21, 2013
9de966f
cs fixes in View/Helper
rchavik Jan 29, 2013
a2a585b
load gallery.js for slug
rchavik Jan 29, 2013
01f2839
add AlbumsPhoto model file
rchavik Jan 29, 2013
4fe6409
add missing column header
rchavik Jan 29, 2013
875674e
add new library layer slider
Mar 5, 2013
9617346
searching photo via a popup
rchavik Feb 7, 2013
e5a15a9
updating search plugin usage
rchavik Mar 11, 2013
b957f1f
fix: incorrect variable returned
rchavik Mar 11, 2013
04893da
Add Controller Helper for PhotoSwipe
Mar 28, 2013
599f8f3
Helper for PhotoSwipe & basic css
Mar 28, 2013
fa75e3a
Update Title Image = Description Album
Apr 2, 2013
15b29c4
make layer slider elements is able to use URL
Apr 23, 2013
2b29ef7
adding migration file
Sep 4, 2013
d41744b
adding migration file
Sep 4, 2013
2f04243
adjust table and columns when activating migration
Sep 4, 2013
d7eeb36
Update gallery.js
Oct 18, 2013
af7d828
Recreate using fields as defined in schema and remove invalid steps
rchavik Nov 4, 2013
ea7c693
Merge branch '2.0' into 2.1
rchavik Nov 4, 2013
33513bc
Migrations for albums_photos join table
rchavik Nov 4, 2013
5899581
misc small fixes
rchavik Nov 26, 2013
a2fc644
Update GalleryHelper.php
Dec 2, 2013
8ffe4b0
Add length check as per https://github.com/rchavik/gallery/pull/2#iss…
rchavik Dec 10, 2013
b873b6c
Merge branch 'pr/2' into 2.1
rchavik Dec 10, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.swp
67 changes: 67 additions & 0 deletions Config/GalleryActivation.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?php
/**
* Example Activation
*
* Activation class for Example plugin.
* This is optional, and is required only if you want to perform tasks when your plugin is activated/deactivated.
*
* @package Croogo
* @author Fahad Ibnay Heylaal <contact@fahad19.com>
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @link http://www.croogo.org
*/
class GalleryActivation {

public function beforeActivation(&$controller) {
return true;
}

/**
* Called after activating the plugin in ExtensionsPluginsController::admin_toggle()
*
* @param object $controller Controller
* @return void
*/
public function onActivation(&$controller) {
// ACL: set ACOs with permissions
$controller->Croogo->addAco('Gallery/Albums/index', array('registered', 'public'));
$controller->Croogo->addAco('Gallery/Albums/view', array('registered', 'public'));
$controller->Croogo->addAco('Gallery/Albums/admin_index', array('admin'));
$controller->Croogo->addAco('Gallery/Albums/admin_add', array('admin'));
$controller->Croogo->addAco('Gallery/Albums/admin_edit', array('admin'));
$controller->Croogo->addAco('Gallery/Photos/admin_upload', array('admin','public','registered'));




$controller->Setting->write('Gallery.album_limit_pagination', '10', array('editable' => 1, 'title' => 'Albums Per Page'));
$controller->Setting->write('Gallery.max_width', '500', array('editable' => 1, 'title' => 'Max width'));
$controller->Setting->write('Gallery.max_height', '1080', array('editable' => 1, 'title' => 'Max height'));
$controller->Setting->write('Gallery.max_width_thumbnail', '120', array('editable' => 1, 'title' => 'Thumbnail max. width'));
$controller->Setting->write('Gallery.max_height_thumbnail', '80', array('editable' => 1, 'title' => 'Thumbnail max. height'));
$controller->Setting->write('Gallery.quality', '90', array('editable' => '1', 'title' => 'Quality',));
$controller->Setting->write('Gallery.jslibs', 'galleria,nivo-slider,DDSlider,pikachoose,fancybox,orbit,jquery-photofy,jquery-kenburn', array('editable' => '1', 'title' => 'Libraries'));
}

public function beforeDeactivation(&$controller) {
return true;
}

/**
* Called after deactivating the plugin in ExtensionsPluginsController::admin_toggle()
*
* @param object $controller Controller
* @return void
*/
public function onDeactivation(&$controller) {
$controller->Croogo->removeAco('Gallery');

$controller->Setting->deleteKey('Gallery.album_limit_pagination');
$controller->Setting->deleteKey('Gallery.max_width');
$controller->Setting->deleteKey('Gallery.max_width_thumb');
$controller->Setting->deleteKey('Gallery.max_height_thumb');
$controller->Setting->deleteKey('Gallery.quality');
$controller->Setting->deleteKey('Gallery.jslibs');
}
}
?>
92 changes: 92 additions & 0 deletions Config/Migration/1307456782_firstmigrationgallery.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<?php

class FirstMigrationGalery extends CakeMigration {

/**
* Migration description
*
* @var string
* @access public
*/
public $description = '';

/**
* Actions to be performed
*
* @var array $migration
* @access public
*/
public $migration = array(
'up' => array(
'create_table' => array(
'albums' => array(
'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'length' => 11, 'key' => 'primary'),
'position' => array('type' => 'integer', 'null' => true, 'default' => NULL, 'length' => 11),
'title' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 45),
'slug' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 45),
'description' => array('type' => 'text', 'null' => true, 'default' => NULL),
'type' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 15),
'status' => array('type' => 'boolean', 'null' => false, 'default' => NULL),
'max_width' => array('type' => 'integer', 'null' => true),
'max_height' => array('type' => 'integer', 'null' => true),
'max_height_thumbnail' => array('type' => 'integer', 'null' => true),
'max_width_thumbnail' => array('type' => 'integer', 'null' => true),
'quality' => array('type' => 'integer', 'null' => true),
'params' => array('type' => 'text', 'null' => true, 'default' => NULL),
'indexes' => array(
'id' => array('column' => array('id'), 'unique' => true),
),
'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_unicode_ci', 'engine' => 'InnoDb'),
),
'photos' => array(
'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'length' => 11, 'key' => 'primary'),
'album_id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'length' => 11),
'title' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 45),
'description' => array('type' => 'text', 'null' => true, 'default' => NULL),
'url' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 255),
'small' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 1024),
'large' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 1024),
'original' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 1024),
'status' => array('type' => 'boolean', 'null' => false, 'default' => NULL),
'weight' => array('type' => 'integer', 'null' => true, 'default' => NULL, 'length' => 11),
'params' => array('type' => 'text', 'null' => true, 'default' => NULL),
'indexes' => array(
'id' => array('column' => array('id'), 'unique' => true),
'fk_photos_albums' => array('column' => array('album_id'), 'unqie' => true),
),
'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_unicode_ci', 'engine' => 'InnoDb'),
),
),
),
'down' => array(
'drop_table' => array(
'albums', 'photos',
),
),
);

/**
* Before migration callback
*
* @param string $direction, up or down direction of migration process
* @return boolean Should process continue
* @access public
*/
public function before($direction) {
if ($direction == 'down' && Configure::read('debug') == 0) {
return false;
}
return true;
}

/**
* After migration callback
*
* @param string $direction, up or down direction of migration process
* @return boolean Should process continue
* @access public
*/
public function after($direction) {
return true;
}
}
62 changes: 62 additions & 0 deletions Config/Migration/1378297577_gallerymigration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?php
class GalleryMigration extends CakeMigration {

/**
* Migration description
*
* @var string
* @access public
*/
public $description = '';

/**
* Actions to be performed
*
* @var array $migration
* @access public
*/
public $migration = array(
'up' => array(
'create_field' => array(
'albums' => array(
'created' => array('type' => 'datetime', 'null' => true),
),
'photos' => array(
'created' => array('type' => 'datetime', 'null' => true),
)
),
),
'down' => array(
'drop_field' => array(
'albums' => array(
'created'
),
'photos' => array(
'created'
),
),
),
);

/**
* Before migration callback
*
* @param string $direction, up or down direction of migration process
* @return boolean Should process continue
* @access public
*/
public function before($direction) {
return true;
}

/**
* After migration callback
*
* @param string $direction, up or down direction of migration process
* @return boolean Should process continue
* @access public
*/
public function after($direction) {
return true;
}
}
79 changes: 79 additions & 0 deletions Config/Migration/1378300614_add_join_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?php

class AddJoinTable extends CakeMigration {

/**
* Migration description
*
* @var string
* @access public
*/
public $description = '';

/**
* Actions to be performed
*
* @var array $migration
* @access public
*/
public $migration = array(
'up' => array(
'create_table' => array(

'albums_photos' => array(
'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'length' => 11, 'key' => 'primary'),
'photo_id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'length' => 11),
'album_id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'length' => 11),
'master' => array('type' => 'boolean', 'null' => false, 'default' => 0),
'weight' => array('type' => 'integer', 'null' => true, 'default' => NULL, 'length' => 11),
'created' => array('type' => 'datetime', 'null' => false, 'default' => NULL),
'indexes' => array(
'id' => array('column' => array('id'), 'unique' => true),
'ix_photos_category' => array('column' => array('photo_id', 'album_id'), 'unique' => true),
),
'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_unicode_ci', 'engine' => 'InnoDb'),
),
),
'drop_field' => array(
'photos' => array(
'album_id',
'weight',
),
),
),

'down' => array(
'drop_table' => array(
'albums_photos',
),
'create_field' => array(
'photos' => array(
'album_id' => array('type' => 'integer'),
'weight' => array('type' => 'integer'),
),
),
),
);

/**
* Before migration callback
*
* @param string $direction, up or down direction of migration process
* @return boolean Should process continue
* @access public
*/
public function before($direction) {
return true;
}

/**
* After migration callback
*
* @param string $direction, up or down direction of migration process
* @return boolean Should process continue
* @access public
*/
public function after($direction) {
return true;
}
}
81 changes: 81 additions & 0 deletions Config/Schema/schema.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?php

class GallerySchema extends CakeSchema {

public $name = 'Gallery';

public function before($event = array()) {
return true;
}

function after($event = array()) {
}

public $albums = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'length' => 11, 'key' => 'primary'),
'position' => array('type' => 'integer', 'null' => true, 'default' => NULL, 'length' => 11),
'title' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 45),
'slug' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 45),
'description' => array('type' => 'text', 'null' => true, 'default' => NULL),
'type' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 15),
'status' => array('type' => 'boolean', 'null' => false, 'default' => NULL),
'max_width' => array('type' => 'integer', 'null' => true),
'max_height' => array('type' => 'integer', 'null' => true),
'max_height_thumbnail' => array('type' => 'integer', 'null' => true),
'max_width_thumbnail' => array('type' => 'integer', 'null' => true),
'quality' => array('type' => 'integer', 'null' => true),
'params' => array('type' => 'text', 'null' => true, 'default' => NULL),
'created' => array('type' => 'datetime', 'null' => false, 'default' => null),
'indexes' => array(
'id' => array('column' => array('id'), 'unique' => true),
),
'tableParameters' => array(
'charset' => 'utf8',
'collate' => 'utf8_unicode_ci',
'engine' => 'InnoDb'
),
);

public $photos = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'length' => 11, 'key' => 'primary'),
'title' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 45),
'description' => array('type' => 'text', 'null' => true, 'default' => NULL),
'url' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 255),
'small' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 1024),
'large' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 1024),
'original' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 1024),
'status' => array('type' => 'boolean', 'null' => false, 'default' => NULL),
'params' => array('type' => 'text', 'null' => true, 'default' => NULL),
'created' => array('type' => 'datetime', 'null' => false, 'default' => null),
'indexes' => array(
'id' => array('column' => array('id'), 'unique' => true),
),
'tableParameters' => array(
'charset' => 'utf8',
'collate' => 'utf8_unicode_ci',
'engine' => 'InnoDb'
),
);

public $albums_photos = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'length' => 11, 'key' => 'primary'),
'photo_id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'length' => 11),
'album_id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'length' => 11),
'master' => array('type' => 'boolean', 'null' => false, 'default' => 0),
'weight' => array('type' => 'integer', 'null' => true, 'default' => NULL, 'length' => 11),
'created' => array('type' => 'datetime', 'null' => false, 'default' => null),
'indexes' => array(
'id' => array('column' => array('id'), 'unique' => true),
'ix_photos_category' => array(
'column' => array('photo_id', 'album_id'),
'unique' => true,
),
),
'tableParameters' => array(
'charset' => 'utf8',
'collate' => 'utf8_unicode_ci',
'engine' => 'InnoDb',
),
);

}
1 change: 1 addition & 0 deletions Config/Schema/sql/patch.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table photos change title title varchar(255);
Loading