Skip to content

Commit

Permalink
Merge pull request #511 from doctrine/remove-migrations
Browse files Browse the repository at this point in the history
Remove Doctrine Migrations
  • Loading branch information
SenseException authored Aug 27, 2023
2 parents ba7e9ba + 75ab350 commit 48f2b5e
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 218 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"php": "^8.2",
"algolia/algoliasearch-client-php": "^3.3",
"doctrine/inflector": "^2.0",
"doctrine/migrations": "^3.5",
"doctrine/orm": "^2.14",
"doctrine/rst-parser": "^0.5",
"doctrine/skeleton-mapper": "^2.0",
Expand Down
166 changes: 1 addition & 165 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -405,15 +405,5 @@
<argument key="serverVersion">%doctrine.website.mysql.version%</argument>
</argument>
</service>

<service id="Doctrine\Migrations\Configuration\Configuration">
<call method="setAllOrNothing">
<argument>true</argument>
</call>
<call method="addMigrationsDirectory">
<argument>Doctrine\Website\Migrations</argument>
<argument>%doctrine.website.root_dir%/lib/Migrations</argument>
</call>
</service>
</services>
</container>
13 changes: 0 additions & 13 deletions lib/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Tools\Console\Command as DBALCommand;
use Doctrine\DBAL\Tools\Console\ConnectionProvider\SingleConnectionProvider;
use Doctrine\Migrations\Tools\Console\Command as MigrationsCommand;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\Tools\Console\Command as ORMCommand;
use Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper;
Expand Down Expand Up @@ -92,18 +91,6 @@ public function __construct(
new ORMCommand\ValidateSchemaCommand(),
new ORMCommand\InfoCommand(),
new ORMCommand\MappingDescribeCommand(),

// Migrations Commands
new MigrationsCommand\DumpSchemaCommand(),
new MigrationsCommand\ExecuteCommand(),
new MigrationsCommand\GenerateCommand(),
new MigrationsCommand\LatestCommand(),
new MigrationsCommand\MigrateCommand(),
new MigrationsCommand\RollupCommand(),
new MigrationsCommand\StatusCommand(),
new MigrationsCommand\VersionCommand(),
new MigrationsCommand\UpToDateCommand(),
new MigrationsCommand\DiffCommand(),
]);
}

Expand Down
29 changes: 0 additions & 29 deletions lib/Migrations/Version20190515005142.php

This file was deleted.

0 comments on commit 48f2b5e

Please sign in to comment.