T
T
time_is_always_against_us2019-10-19 11:17:36
PostgreSQL
time_is_always_against_us, 2019-10-19 11:17:36

How to migrate data from Postgres tables to Symfony?

Symfony project.
There is a Postgres database dump, for which 2 migrations need to be done:
- Only the table structure.
- Data for these tables.
The first point is not difficult to make, through

php bin/console doctrine:mapping:import "App\Entity" annotation --path=src/Entity
I do Entity, then I create migrations for them.
For the second point, I have not found a solution yet. Please advise how this can be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2019-10-19
@time_is_always_against_us

Structure pg_restore --schema-only (-s)
Recovery: Data Recovery: pg_restore --data-only (-a)
https://www.postgresql.org/docs/current/app-pgrest...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question