P
P
postgresdev2019-08-08 16:56:53
symfony
postgresdev, 2019-08-08 16:56:53

What is the correct way to create a migration to declare a unique key in Symfony 3.2 in an existing project?

In particular, it is of interest: it is better to add it to the entity and then generate the migrations. Or create your own migration for this and not touch the entity?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Pavlov, 2019-08-09
@postgresdev

Better add to entity and then generate migration

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question