for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Application\Migrations;
use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
/**
* Migration to add column is_translated to the languages table and set all translated languages to 1.
*/
class Version20170830005500 extends AbstractMigration
{
* @param Schema $schema
* @return void
public function up(Schema $schema)
$this->addSql('ALTER TABLE languages ADD is_translated TINYINT DEFAULT 0 NOT NULL;');
$this->addSql('UPDATE languages SET is_translated = 1 WHERE short IN (\'DE\', \'EN\', \'FR\', \'IT\', \'ES\');');
}
public function down(Schema $schema)