proophessor-do-symfony icon indicating copy to clipboard operation
proophessor-do-symfony copied to clipboard

Create migrations

Open f1r3starter opened this issue 6 years ago • 6 comments
trafficstars

Update dependencies, fix deprecations notes, add migrations

f1r3starter avatar Apr 25 '19 08:04 f1r3starter

Just FYI, when running against postgres:

Screen Shot 2019-04-25 at 9 45 23 PM

mbadolato avatar Apr 26 '19 04:04 mbadolato

Thanks for the hint @mbadolato. @f1r3starter can you update the PR?

prolic avatar Apr 26 '19 04:04 prolic

@mbadolato Thanks for pointing out! Fixed @prolic PR updated, also added commented postgresql block to docker-compose.yml and .env connection, just in case if someone would like to test it with postgres instead of mysql

f1r3starter avatar Apr 26 '19 13:04 f1r3starter

@prooph/symfony-team please check

prolic avatar Apr 30 '19 19:04 prolic

Does a migration run when named something arbitrary? I always thought that Doctrine Migrations needed the naming scheme to match up what the latest is in the database and determine what is next and hasn't yet run.

mbadolato avatar May 02 '19 04:05 mbadolato

Hmm, yep as suspected. When I named the migration file the same as the last commit, the migration failed. Naming it back to the original and the migration ran.

Or is there a config setting that needs to be changed to allow?

Screen Shot 2019-05-01 at 9 27 34 PM

mbadolato avatar May 02 '19 04:05 mbadolato