Merge branch 'feature-build-log-size'
This commit is contained in:
commit
07815d85eb
|
@ -9,7 +9,7 @@
|
|||
|
||||
namespace PHPCensor\Helper;
|
||||
|
||||
use PHPCensor\Model\Build;
|
||||
use PHPCensor\Model\Build as BaseBuild;
|
||||
|
||||
/**
|
||||
* The BuildInterpolator class replaces variables in a string with build-specific information.
|
||||
|
@ -28,11 +28,11 @@ class BuildInterpolator
|
|||
/**
|
||||
* Sets the variables that will be used for interpolation.
|
||||
*
|
||||
* @param Build $build
|
||||
* @param BaseBuild $build
|
||||
* @param string $buildPath
|
||||
* @param string $url
|
||||
*/
|
||||
public function setupInterpolationVars(Build $build, $buildPath, $url)
|
||||
public function setupInterpolationVars(BaseBuild $build, $buildPath, $url)
|
||||
{
|
||||
$this->interpolation_vars = [];
|
||||
$this->interpolation_vars['%PHPCI%'] = 1;
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
use Phinx\Db\Adapter\MysqlAdapter;
|
||||
|
||||
class FixedBuildLogColumnForMysql extends AbstractMigration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
$adapter = $this->getAdapter();
|
||||
if ($adapter instanceof MysqlAdapter) {
|
||||
$this
|
||||
->table('build')
|
||||
->changeColumn('log', MysqlAdapter::PHINX_TYPE_TEXT, ['limit' => MysqlAdapter::TEXT_LONG])
|
||||
->save();
|
||||
}
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue