You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
does always create a version file even if there are no changes to be made to the current schema.
The content of this file is for example
namespaceApplication\Migrations;
useDoctrine\DBAL\Migrations\AbstractMigration,
Doctrine\DBAL\Schema\Schema;
/** * Auto-generated Migration: Please modify to your need! */classVersion20121210110653extendsAbstractMigration
{
publicfunctionup(Schema$schema)
{
// this up() migration is autogenerated, please modify it to your needs$this->abortIf($this->connection->getDatabasePlatform()->getName() != "mysql");
}
publicfunctiondown(Schema$schema)
{
// this down() migration is autogenerated, please modify it to your needs$this->abortIf($this->connection->getDatabasePlatform()->getName() != "mysql");
}
}
In Doctrine\DBAL\Migrations\Tools\Console\Command\DiffCommand there is always the 'abortIf()' line added to the Version-Code.
As we want to use Migrations in a semi automatic build process these 'empty' versions are really annoying.
Using the following command
does always create a version file even if there are no changes to be made to the current schema.
The content of this file is for example
In Doctrine\DBAL\Migrations\Tools\Console\Command\DiffCommand there is always the 'abortIf()' line added to the Version-Code.
As we want to use Migrations in a semi automatic build process these 'empty' versions are really annoying.
(Kind of duplicates #41)
The text was updated successfully, but these errors were encountered: