Skip to content

Commit 7ef62d6

Browse files
authored
Merge pull request #36 from redthor/fix/remove-unused-migration-attributes
Remove unused abstract migration attributes, resolves #35
2 parents 790ad04 + add49af commit 7ef62d6

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/AntiMattr/MongoDB/Migrations/AbstractMigration.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@ abstract class AbstractMigration
3232
*/
3333
private $outputWriter;
3434

35-
/**
36-
* @var Doctrine\MongoDB\Connection
37-
*/
38-
protected $connection;
39-
40-
/**
41-
* @var Doctrine\MongoDB\Database
42-
*/
43-
protected $db;
44-
4535
/**
4636
* @var AntiMattr\MongoDB\Migrations\Version
4737
*/
@@ -51,10 +41,6 @@ public function __construct(Version $version)
5141
{
5242
$this->configuration = $version->getConfiguration();
5343
$this->outputWriter = $this->configuration->getOutputWriter();
54-
$this->connection = $this->configuration->getConnection();
55-
$this->connection = $this->connection->selectDatabase(
56-
$this->configuration->getMigrationsDatabaseName()
57-
);
5844
$this->version = $version;
5945
}
6046

0 commit comments

Comments
 (0)