doctrine-migrations Questions

2

Solved

I've searched pretty much everywhere but I wasn't able to find anything. Is there a command or a procedure to change the name of a table (so inside doctrine annotation) without loosing data? Bas...
Burt asked 30/12, 2015 at 15:56

1

Solved

I use Symfony 2.7, doctrine/orm 2.5 and doctrine-bundle 1.5. In Cargo entity I have property price: /** * @var float * * @ORM\Column(name="price", type="float", options={"unsigned":true, "defa...
Prioress asked 6/4, 2016 at 17:6

4

Solved

When I run bin/console doctrine:migrations:list I see the Migration listed as: Application\Migrations\Version20210909072642 I am attempting to rollback a migration and I have tried a few different ...
Fishhook asked 17/9, 2021 at 6:25

3

When I run php bin/console doctrine:migrations:diff I always get the following newly generated migration: <?php declare(strict_types=1); namespace DoctrineMigrations; use Doctrine\DBAL\Schema...
Osteoclasis asked 21/2, 2022 at 18:21

1

I have a weird problem. When I run doctrine-migrations migrations:diff it regenerates the index that already is set in an earlier migration. Earlier migration (the uniq index is also present in my ...
Goethe asked 20/10, 2020 at 19:32

4

Solved

I was recently tweaking around with my DB and noticed that I made 5 migrations on top of my existing 2. So 7 in total, m1, m2, ..., m7. From these 5, I only want the latest version. So I was thinki...
Forsook asked 18/7, 2019 at 18:27

4

When i run comand php bin/console doctrine:migration:migrate i got this error I don't know where is come from. command line error : In AbstractMySQLDriver.php line 99: An exception occurred whi...
Trulatrull asked 18/11, 2018 at 22:44

1

I'm using doctrine in my Symfony project, by connecting to an already existent postgres database. The DB has several schemas, but the symfony app will use nothing but its own schema. The first Ent...
Grimonia asked 22/4, 2016 at 15:15

1

Solved

i've tried to update Symfony 4.3 runing the command "composer update". 107 packages were updated . then in the end of the script an error appeared when runing the command "cache:clea...
Izanagi asked 10/8, 2020 at 9:48

1

I'm using an SQLite connection and doctrine migrations for functional testing with PHPUnit. I'm making a DB migration from scratch in the setUp method: public function setUp() { parent::setUp(); ...
Toscanini asked 31/7, 2020 at 9:57

2

I am struggling to have symfony/doctrine exclude db views when validating and updating schema. I first tried without doctrine migrations ( see this question) but that did not work. I found out th...
Resume asked 19/10, 2017 at 8:35

2

Solved

How can one configure Symfony's DoctrineMigrationsBundle to use different database authentication credentials to its DoctrineBundle—or at very least, a different DoctrineBundle connection to that u...
Baugher asked 21/5, 2015 at 16:9

0

I am trying to prepare first migration for project, that has quite big postgres database. I have dumped production DB schema, cleared it from comments and empty lines, and put whole as a text in si...
Counterattraction asked 24/7, 2019 at 15:6

2

Solved

I have a project built on Symfony 3.4 with Flex and I've added phpstan to it for static analysis. It is complaining about not finding my migration classes: Class DoctrineMigrations\Version2018083...
Dishpan asked 10/9, 2018 at 10:59

1

I am using Doctrine ORM 2.6.1 in a Symfony 3.4.4 project. Some of my instances work on a MySQL database, some on Postgresql, and a few installations even access a MicosoftSQL server. This works fin...
Afton asked 21/6, 2018 at 13:33

2

Solved

I'm working on a project that does NOT have a copy of production DB on development environment. Sometimes we have an issue with DB migrations - they pass on dev DB but fail in production/testing. ...
Cyclorama asked 28/9, 2015 at 13:38

2

Solved

I know that I can run specific migrations using execute with up / down and version number, ie doctrine:migrations:execute YYYYMMDDHHMMSS --down My question then - is there an easier way to simply...
Gadgetry asked 18/8, 2017 at 11:12

2

Is the Doctrine Migrations project compatible with Doctrine MongoDB? It isn't clear to me from searching and looking at the Doctrine Migrations project whether it is compatible with ODM solutions ...
Prepay asked 28/12, 2013 at 18:7

3

Solved

Please bear with me. Pretty new to Docker. I'm deploying Docker containers (detached) to an AWS EC2 registry using CodeDeploy. On deploy, the following command is run after setting some environmen...
Corriveau asked 11/1, 2017 at 13:22

1

Solved

Project uses Symfony 2.8.2, PHP version is 5.6 I'm trying to install DoctrineMigrationsBundle and composer fails with error: Problem 1 - doctrine/doctrine-migrations-bundle 1.0.0 requires doctri...
Sanmicheli asked 2/2, 2016 at 18:2

1

I have a database (which was actually created using Propel in a Symfony1 application). I am reimplementing it in Symfony2 and Doctrine, but I also want to take the opportunity to refactor the datab...
Lammergeier asked 19/5, 2014 at 21:30

1

Solved

I'm currently in the process of "Doctrinizing" an large existing database. This process is working very well and we're slowly able to substitute the old raw query code with entities and DQL. We re...
Croak asked 9/4, 2014 at 1:39

1

Solved

I'm using doctrine2 with a symfony2.1 project. I have an entity that has a few many to one relationships to other tables. The foreign key relationships for these many-to-one's have already been upd...
Villein asked 30/3, 2013 at 18:5

1

Solved

I am trying to setup doctrine migrations on top of silex framework. I installed it through composer. "doctrine/dbal": "2.3.*", "doctrine/migrations": "dev-master", My console file: ... $app['co...
Sidonius asked 19/5, 2013 at 23:17
1

© 2022 - 2024 — McMap. All rights reserved.