Commits

Christophe Coevoet committed e1f6efc Merge

Merge pull request #108 from aderuwe/abort-reason

Add reason when aborting due to platform mismatch

  • Participants
  • Parent commits 592ccfc, a850c0e

Comments (0)

Files changed (1)

lib/Doctrine/DBAL/Migrations/Tools/Console/Command/DiffCommand.php

     {
         $currentPlatform = $configuration->getConnection()->getDatabasePlatform()->getName();
         $code = array(
-            "\$this->abortIf(\$this->connection->getDatabasePlatform()->getName() != \"$currentPlatform\");", "",
+            "\$this->abortIf(\$this->connection->getDatabasePlatform()->getName() != \"$currentPlatform\", \"Migration can only be executed safely on '$currentPlatform'.\");", "",
         );
         foreach ($sql as $query) {
             if (strpos($query, $configuration->getMigrationsTableName()) !== false) {