Drop table migration_versions after doctrine:schema:update --complete #6111

Open
opened 2026-01-22 15:26:53 +01:00 by admin · 0 comments
Owner

Originally created by @4n70w4 on GitHub (Nov 26, 2018).

Originally assigned to: @Ocramius on GitHub.

Bug Report

Summary

Current behavior

How to reproduce

I use doctrine/migrations, doctrine/orm and etc. But command

php bin/console doctrine:schema:update --dump-sql --complete

generate and execute code:

DROP TABLE migration_versions;

Expected behavior

I expect that the table migration_versions should not be deleted!

composer info | grep doctrine
doctrine/annotations                  v1.6.0             Docblock Annotations Parser
doctrine/cache                        v1.8.0             Caching library offering an object-orient...
doctrine/collections                  v1.5.0             Collections Abstraction library
doctrine/common                       v2.10.0            PHP Doctrine Common project is a library ...
doctrine/dbal                         v2.8.0             Database Abstraction Layer
doctrine/doctrine-bundle              1.9.1              Symfony DoctrineBundle
doctrine/doctrine-cache-bundle        1.3.5              Symfony Bundle for Doctrine Cache
doctrine/doctrine-migrations-bundle   v1.3.1             Symfony DoctrineMigrationsBundle
doctrine/event-manager                v1.0.0             Doctrine Event Manager component
doctrine/inflector                    v1.3.0             Common String Manipulations with regard t...
doctrine/instantiator                 1.1.0              A small, lightweight utility to instantia...
doctrine/lexer                        v1.0.1             Base library for a lexer that can be used...
doctrine/migrations                   v1.8.1             Database Schema migrations using Doctrine...
doctrine/orm                          v2.6.3             Object-Relational-Mapper for PHP
doctrine/persistence                  v1.1.0             The Doctrine Persistence project is a set...
doctrine/reflection                   v1.0.0             Doctrine Reflection component
Originally created by @4n70w4 on GitHub (Nov 26, 2018). Originally assigned to: @Ocramius on GitHub. ### Bug Report #### Summary #### Current behavior #### How to reproduce I use doctrine/migrations, doctrine/orm and etc. But command `php bin/console doctrine:schema:update --dump-sql --complete` generate and execute code: `DROP TABLE migration_versions;` #### Expected behavior I expect that the table migration_versions should not be deleted! ``` composer info | grep doctrine doctrine/annotations v1.6.0 Docblock Annotations Parser doctrine/cache v1.8.0 Caching library offering an object-orient... doctrine/collections v1.5.0 Collections Abstraction library doctrine/common v2.10.0 PHP Doctrine Common project is a library ... doctrine/dbal v2.8.0 Database Abstraction Layer doctrine/doctrine-bundle 1.9.1 Symfony DoctrineBundle doctrine/doctrine-cache-bundle 1.3.5 Symfony Bundle for Doctrine Cache doctrine/doctrine-migrations-bundle v1.3.1 Symfony DoctrineMigrationsBundle doctrine/event-manager v1.0.0 Doctrine Event Manager component doctrine/inflector v1.3.0 Common String Manipulations with regard t... doctrine/instantiator 1.1.0 A small, lightweight utility to instantia... doctrine/lexer v1.0.1 Base library for a lexer that can be used... doctrine/migrations v1.8.1 Database Schema migrations using Doctrine... doctrine/orm v2.6.3 Object-Relational-Mapper for PHP doctrine/persistence v1.1.0 The Doctrine Persistence project is a set... doctrine/reflection v1.0.0 Doctrine Reflection component ```
admin added the ImprovementWon't FixQuestion labels 2026-01-22 15:26:53 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6111