Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First pass at supporting saving original contact photos after resize.
- Loading branch information
Showing
7 changed files
with
122 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
/** | ||
* @author Michael J. Rubinsky <mrubinsk@horde.org> | ||
* @category Horde | ||
* @license http://www.horde.org/licenses/apache ASL | ||
* @package Turba | ||
*/ | ||
|
||
require_once __DIR__ . '/../lib/Turba.php'; | ||
|
||
/** | ||
* Add hierarchcal related columns to the legacy sql share driver | ||
* | ||
* Copyright 2011-2015 Horde LLC (http://www.horde.org/) | ||
* | ||
* See the enclosed file LICENSE for license information (ASL). If you | ||
* did not receive this file, see http://www.horde.org/licenses/apache. | ||
* | ||
* @author Michael J. Rubinsky <mrubinsk@horde.org> | ||
* @category Horde | ||
* @license http://www.horde.org/licenses/apache ASL | ||
* @package Turba | ||
*/ | ||
class TurbaUpgradeoriginalphotos extends Horde_Db_Migration_Base | ||
{ | ||
/** | ||
* Upgrade. | ||
*/ | ||
public function up() | ||
{ | ||
$t = $this->_connection->table('turba_objects'); | ||
$cols = array_keys($t->getColumns()); | ||
|
||
if (!in_array('object_photoorig', $cols)) { | ||
$this->addColumn('turba_objects', 'object_photoorig', 'binary'); | ||
} | ||
} | ||
|
||
/** | ||
* Downgrade | ||
*/ | ||
public function down() | ||
{ | ||
$this->removeColumn('turba_objects', 'object_photoorig'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters