for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <[email protected]>
* (c) Gorka Laucirica <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Kreta\IdentityAccess\Infrastructure\Persistence\Doctrine\Migrations;
use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
class Version20170731164211 extends AbstractMigration
{
public function up(Schema $schema) : void
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.
$this->addSql('ALTER TABLE user CHANGE username username VARCHAR(150) NOT NULL');
}
public function down(Schema $schema) : void
$this->addSql('ALTER TABLE user CHANGE username username VARCHAR(20) NOT NULL COLLATE utf8_unicode_ci');
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.