diff --git a/composer.json b/composer.json index c346b0de..32a215f6 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/composer.lock b/composer.lock index b168e867..95e8f936 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "b919eed645983608b225110e7b9b2422", + "content-hash": "f61d824bacc05a5a9777f30cff8ef434", "packages": [ { "name": "algolia/algoliasearch-client-php", @@ -890,108 +890,6 @@ ], "time": "2022-12-14T08:49:07+00:00" }, - { - "name": "doctrine/migrations", - "version": "3.6.0", - "source": { - "type": "git", - "url": "https://github.com/doctrine/migrations.git", - "reference": "e542ad8bcd606d7a18d0875babb8a6d963c9c059" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/migrations/zipball/e542ad8bcd606d7a18d0875babb8a6d963c9c059", - "reference": "e542ad8bcd606d7a18d0875babb8a6d963c9c059", - "shasum": "" - }, - "require": { - "composer-runtime-api": "^2", - "doctrine/dbal": "^3.5.1", - "doctrine/deprecations": "^0.5.3 || ^1", - "doctrine/event-manager": "^1.2 || ^2.0", - "php": "^8.1", - "psr/log": "^1.1.3 || ^2 || ^3", - "symfony/console": "^4.4.16 || ^5.4 || ^6.0", - "symfony/stopwatch": "^4.4 || ^5.4 || ^6.0", - "symfony/var-exporter": "^6.2" - }, - "conflict": { - "doctrine/orm": "<2.12" - }, - "require-dev": { - "doctrine/coding-standard": "^9", - "doctrine/orm": "^2.13", - "doctrine/persistence": "^2 || ^3", - "doctrine/sql-formatter": "^1.0", - "ext-pdo_sqlite": "*", - "phpstan/phpstan": "^1.5", - "phpstan/phpstan-deprecation-rules": "^1", - "phpstan/phpstan-phpunit": "^1.1", - "phpstan/phpstan-strict-rules": "^1.1", - "phpstan/phpstan-symfony": "^1.1", - "phpunit/phpunit": "^9.5.24", - "symfony/cache": "^4.4 || ^5.4 || ^6.0", - "symfony/process": "^4.4 || ^5.4 || ^6.0", - "symfony/yaml": "^4.4 || ^5.4 || ^6.0" - }, - "suggest": { - "doctrine/sql-formatter": "Allows to generate formatted SQL with the diff command.", - "symfony/yaml": "Allows the use of yaml for migration configuration files." - }, - "bin": [ - "bin/doctrine-migrations" - ], - "type": "library", - "autoload": { - "psr-4": { - "Doctrine\\Migrations\\": "lib/Doctrine/Migrations" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - }, - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com" - }, - { - "name": "Michael Simonson", - "email": "contact@mikesimonson.com" - } - ], - "description": "PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer (DBAL) for versioning your database schema and easily deploying changes to it. It is a very easy to use and a powerful tool.", - "homepage": "https://www.doctrine-project.org/projects/migrations.html", - "keywords": [ - "database", - "dbal", - "migrations" - ], - "support": { - "issues": "https://github.com/doctrine/migrations/issues", - "source": "https://github.com/doctrine/migrations/tree/3.6.0" - }, - "funding": [ - { - "url": "https://www.doctrine-project.org/sponsorship.html", - "type": "custom" - }, - { - "url": "https://www.patreon.com/phpdoctrine", - "type": "patreon" - }, - { - "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fmigrations", - "type": "tidelift" - } - ], - "time": "2023-02-15T18:49:46+00:00" - }, { "name": "doctrine/orm", "version": "2.16.1", @@ -5256,68 +5154,6 @@ ], "time": "2023-05-23T14:45:45+00:00" }, - { - "name": "symfony/stopwatch", - "version": "v6.3.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/stopwatch.git", - "reference": "fc47f1015ec80927ff64ba9094dfe8b9d48fe9f2" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/fc47f1015ec80927ff64ba9094dfe8b9d48fe9f2", - "reference": "fc47f1015ec80927ff64ba9094dfe8b9d48fe9f2", - "shasum": "" - }, - "require": { - "php": ">=8.1", - "symfony/service-contracts": "^2.5|^3" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\Stopwatch\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Provides a way to profile code", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/stopwatch/tree/v6.3.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2023-02-16T10:14:28+00:00" - }, { "name": "symfony/string", "version": "v6.3.2", diff --git a/config/services.xml b/config/services.xml index 63a4dd41..b8ec37d1 100644 --- a/config/services.xml +++ b/config/services.xml @@ -405,15 +405,5 @@ %doctrine.website.mysql.version% - - - - true - - - Doctrine\Website\Migrations - %doctrine.website.root_dir%/lib/Migrations - - diff --git a/lib/Application.php b/lib/Application.php index 155c7b9c..f9d2e219 100644 --- a/lib/Application.php +++ b/lib/Application.php @@ -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; @@ -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(), ]); } diff --git a/lib/Migrations/Version20190515005142.php b/lib/Migrations/Version20190515005142.php deleted file mode 100644 index dbab8020..00000000 --- a/lib/Migrations/Version20190515005142.php +++ /dev/null @@ -1,29 +0,0 @@ -addSql('CREATE TABLE event_participants (id INT AUTO_INCREMENT NOT NULL, email VARCHAR(255) NOT NULL, quantity INT NOT NULL, eventId INT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB'); - } - - public function down(Schema $schema): void - { - $this->addSql('DROP TABLE event_participants'); - } -}