for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace OCA\activity\Migrations;
use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Types\Type;
class Version20161122092159 extends AbstractMigration {
/**
* @param Schema $schema
*/
public function up(Schema $schema) {
$prefix = $this->connection->getPrefix();
$table = $schema->getTable("{$prefix}activity");
$table->changeColumn('app', ['length' => 32]);
$table->changeColumn('subjectparams', ['type' => Type::getType('text')]);
$table->changeColumn('messageparams', ['type' => Type::getType('text')]);
}
public function down(Schema $schema) {
$table->changeColumn('app', ['length' => 255]);
$table->changeColumn('subjectparams', ['type' => Type::getType('string'), 'length' => '4000']);
$table->changeColumn('messageparams', ['type' => Type::getType('string'), 'length' => '4000']);