V
V
Vocler2019-08-25 19:40:32
Yii
Vocler, 2019-08-25 19:40:32

How to apply only one migration in Yii2?

Actually the whole point is in the question. How to apply only one migration while ignoring the rest?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2019-08-25
@Vocler

yii migrate 1

yii migrate/to 150101_185401                      # используя временную метку определяющую миграцию
yii migrate/to "2015-01-01 18:54:01"              # используя строку, которая может быть получена путем использования функции strtotime()
yii migrate/to m150101_185401_create_news_table   # используя полное имя
yii migrate/to 1392853618                         # используя временную метку UNIX

It 's all in the documentation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question