A
A
akula222017-10-10 12:58:59
Yii
akula22, 2017-10-10 12:58:59

How to apply the desired yii migrate/to migration?

Why, when I select the migration I need
yii migrate/to m150101_185401_create_news_table, the
console displays all existing migrations and offers to apply them all, but I only need the last one!
resulting in an error
Error: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2017-10-10
@akula22

Good afternoon.
On the first question - Applying migrations
For the second question - "Column already exists" -> "Column already exists"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question