Compare commits

...

3 commits

Author SHA1 Message Date
Dan Cryer 4a371c6720 Updating composer. 2015-02-09 11:16:57 +00:00
Dan Cryer 57a02a82e9 Merge branch 'master' into dc/db-types 2015-02-09 11:12:30 +00:00
Dan Cryer 0f680c800b Make build log and meta value columns use MEDIUMTEXT data type. 2015-02-03 11:04:55 +00:00
2 changed files with 59 additions and 76 deletions

View file

@ -0,0 +1,28 @@
<?php
use Phinx\Migration\AbstractMigration;
use Phinx\Db\Adapter\MysqlAdapter;
class FixColumnTypes extends AbstractMigration
{
/**
* Migrate Up.
*/
public function up()
{
// Update the build log column to MEDIUMTEXT:
$build = $this->table('build');
$build->changeColumn('log', 'text', array(
'null' => true,
'default' => '',
'limit' => MysqlAdapter::TEXT_MEDIUM,
));
// Update the build meta value column to MEDIUMTEXT:
$buildMeta = $this->table('build_meta');
$buildMeta->changeColumn('meta_value', 'text', array(
'null' => false,
'limit' => MysqlAdapter::TEXT_MEDIUM,
));
}
}

107
composer.lock generated
View file

@ -255,21 +255,20 @@
}, },
{ {
"name": "robmorgan/phinx", "name": "robmorgan/phinx",
"version": "v0.4.1", "version": "v0.4.2.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/robmorgan/phinx.git", "url": "https://github.com/robmorgan/phinx.git",
"reference": "357210707c000f50edea802d84b74724ad122478" "reference": "1bc1396392d4073b8b29ee5289e445889cbc12b5"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/robmorgan/phinx/zipball/357210707c000f50edea802d84b74724ad122478", "url": "https://api.github.com/repos/robmorgan/phinx/zipball/1bc1396392d4073b8b29ee5289e445889cbc12b5",
"reference": "357210707c000f50edea802d84b74724ad122478", "reference": "1bc1396392d4073b8b29ee5289e445889cbc12b5",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.2", "php": ">=5.3.2",
"symfony/class-loader": "~2.6.0",
"symfony/config": "~2.6.0", "symfony/config": "~2.6.0",
"symfony/console": "~2.6.0", "symfony/console": "~2.6.0",
"symfony/yaml": "~2.6.0" "symfony/yaml": "~2.6.0"
@ -283,8 +282,8 @@
], ],
"type": "library", "type": "library",
"autoload": { "autoload": {
"psr-0": { "psr-4": {
"Phinx": "src/" "Phinx\\": "src/Phinx"
} }
}, },
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
@ -297,6 +296,12 @@
"email": "robbym@gmail.com", "email": "robbym@gmail.com",
"homepage": "http://robmorgan.id.au", "homepage": "http://robmorgan.id.au",
"role": "Lead Developer" "role": "Lead Developer"
},
{
"name": "Woody Gilk",
"email": "woody.gilk@gmail.com",
"homepage": "http://shadowhand.me",
"role": "Developer"
} }
], ],
"description": "Phinx makes it ridiculously easy to manage the database migrations for your PHP app.", "description": "Phinx makes it ridiculously easy to manage the database migrations for your PHP app.",
@ -308,7 +313,7 @@
"migrations", "migrations",
"phinx" "phinx"
], ],
"time": "2014-12-23 06:06:14" "time": "2015-02-08 03:41:44"
}, },
{ {
"name": "swiftmailer/swiftmailer", "name": "swiftmailer/swiftmailer",
@ -362,56 +367,6 @@
], ],
"time": "2014-12-05 14:17:14" "time": "2014-12-05 14:17:14"
}, },
{
"name": "symfony/class-loader",
"version": "v2.6.4",
"target-dir": "Symfony/Component/ClassLoader",
"source": {
"type": "git",
"url": "https://github.com/symfony/ClassLoader.git",
"reference": "deac802f76910708ab50d039806cfd1866895b52"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/ClassLoader/zipball/deac802f76910708ab50d039806cfd1866895b52",
"reference": "deac802f76910708ab50d039806cfd1866895b52",
"shasum": ""
},
"require": {
"php": ">=5.3.3"
},
"require-dev": {
"symfony/finder": "~2.0,>=2.0.5"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.6-dev"
}
},
"autoload": {
"psr-0": {
"Symfony\\Component\\ClassLoader\\": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Symfony Community",
"homepage": "http://symfony.com/contributors"
},
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
}
],
"description": "Symfony ClassLoader Component",
"homepage": "http://symfony.com",
"time": "2015-01-05 14:28:40"
},
{ {
"name": "symfony/config", "name": "symfony/config",
"version": "v2.6.4", "version": "v2.6.4",
@ -761,27 +716,27 @@
}, },
{ {
"name": "phpdocumentor/reflection-docblock", "name": "phpdocumentor/reflection-docblock",
"version": "2.0.3", "version": "2.0.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
"reference": "38743b677965c48a637097b2746a281264ae2347" "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/38743b677965c48a637097b2746a281264ae2347", "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d68dbdc53dc358a816f00b300704702b2eaff7b8",
"reference": "38743b677965c48a637097b2746a281264ae2347", "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.3" "php": ">=5.3.3"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "3.7.*@stable" "phpunit/phpunit": "~4.0"
}, },
"suggest": { "suggest": {
"dflydev/markdown": "1.0.*", "dflydev/markdown": "~1.0",
"erusev/parsedown": "~0.7" "erusev/parsedown": "~1.0"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
@ -806,7 +761,7 @@
"email": "mike.vanriel@naenius.com" "email": "mike.vanriel@naenius.com"
} }
], ],
"time": "2014-08-09 10:27:07" "time": "2015-02-03 12:10:50"
}, },
{ {
"name": "phploc/phploc", "name": "phploc/phploc",
@ -1274,16 +1229,16 @@
}, },
{ {
"name": "phpunit/phpunit", "name": "phpunit/phpunit",
"version": "4.4.5", "version": "4.5.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git", "url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "2e8580deebb7d1ac92ac878595e6bffe01069c2a" "reference": "5b578d3865a9128b9c209b011fda6539ec06e7a5"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/2e8580deebb7d1ac92ac878595e6bffe01069c2a", "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/5b578d3865a9128b9c209b011fda6539ec06e7a5",
"reference": "2e8580deebb7d1ac92ac878595e6bffe01069c2a", "reference": "5b578d3865a9128b9c209b011fda6539ec06e7a5",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1293,17 +1248,17 @@
"ext-reflection": "*", "ext-reflection": "*",
"ext-spl": "*", "ext-spl": "*",
"php": ">=5.3.3", "php": ">=5.3.3",
"phpspec/prophecy": "~1.3.1",
"phpunit/php-code-coverage": "~2.0", "phpunit/php-code-coverage": "~2.0",
"phpunit/php-file-iterator": "~1.3.2", "phpunit/php-file-iterator": "~1.3.2",
"phpunit/php-text-template": "~1.2", "phpunit/php-text-template": "~1.2",
"phpunit/php-timer": "~1.0.2", "phpunit/php-timer": "~1.0.2",
"phpunit/phpunit-mock-objects": "~2.3", "phpunit/phpunit-mock-objects": "~2.3",
"sebastian/comparator": "~1.0", "sebastian/comparator": "~1.1",
"sebastian/diff": "~1.1", "sebastian/diff": "~1.1",
"sebastian/environment": "~1.1", "sebastian/environment": "~1.2",
"sebastian/exporter": "~1.1", "sebastian/exporter": "~1.2",
"sebastian/global-state": "~1.0", "sebastian/global-state": "~1.0",
"sebastian/recursion-context": "~1.0",
"sebastian/version": "~1.0", "sebastian/version": "~1.0",
"symfony/yaml": "~2.0" "symfony/yaml": "~2.0"
}, },
@ -1316,7 +1271,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "4.4.x-dev" "dev-master": "4.5.x-dev"
} }
}, },
"autoload": { "autoload": {
@ -1342,7 +1297,7 @@
"testing", "testing",
"xunit" "xunit"
], ],
"time": "2015-01-27 16:06:15" "time": "2015-02-05 15:51:19"
}, },
{ {
"name": "phpunit/phpunit-mock-objects", "name": "phpunit/phpunit-mock-objects",