|
@@ -18,6 +18,7 @@
|
|
|
|
|
|
use Doctrine\ORM\Tools\Console\ConsoleRunner;
|
|
use Doctrine\ORM\Tools\Console\ConsoleRunner;
|
|
use Symfony\Component\Console\Helper\HelperSet;
|
|
use Symfony\Component\Console\Helper\HelperSet;
|
|
|
|
+use Doctrine\DBAL\Types\Type;
|
|
|
|
|
|
(@include_once __DIR__ . '/../vendor/autoload.php') || @include_once __DIR__ . '/../../../autoload.php';
|
|
(@include_once __DIR__ . '/../vendor/autoload.php') || @include_once __DIR__ . '/../../../autoload.php';
|
|
|
|
|
|
@@ -42,6 +43,16 @@ if ( ! is_readable($configFile)) {
|
|
exit(1);
|
|
exit(1);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+Type::overrideType(
|
|
|
|
+ Type::DATETIME,
|
|
|
|
+ Database::getUTCDateTimeTypeClass()
|
|
|
|
+);
|
|
|
|
+
|
|
|
|
+Type::addType(
|
|
|
|
+ 'json',
|
|
|
|
+ 'Sonata\Doctrine\Types\JsonType'
|
|
|
|
+);
|
|
|
|
+
|
|
$commands = array(
|
|
$commands = array(
|
|
new \Doctrine\DBAL\Migrations\Tools\Console\Command\DiffCommand(),
|
|
new \Doctrine\DBAL\Migrations\Tools\Console\Command\DiffCommand(),
|
|
new \Doctrine\DBAL\Migrations\Tools\Console\Command\ExecuteCommand(),
|
|
new \Doctrine\DBAL\Migrations\Tools\Console\Command\ExecuteCommand(),
|