Answer the question
In order to leave comments, you need to log in
How to deploy the database structure?
After deploying from scratch, I now have a database and it has an empty project base without a structure (no tables). The application itself was packaged in a Docker image. What are the ways to expand the structure of the database? Migrations like to change the structure of an existing database Do you
need to create an empty dump with tables and deploy it from the backup at the stage of raising the MySQL server? Is there a backup for each environment?
Answer the question
In order to leave comments, you need to log in
All work with the database structure in Symfony is done through the Dortrine Migrations Bundle . To create a data structure you need to:
1. Customize the mapping of your entities.
2. Generate migrations with command
php bin/console doctrine:migrations:diff
3. Apply created migrations with command
php bin/console doctrine:migrations:migrate
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question