• <legend id='pnSan'><style id='pnSan'><dir id='pnSan'><q id='pnSan'></q></dir></style></legend>
    • <bdo id='pnSan'></bdo><ul id='pnSan'></ul>

    <small id='pnSan'></small><noframes id='pnSan'>

    <i id='pnSan'><tr id='pnSan'><dt id='pnSan'><q id='pnSan'><span id='pnSan'><b id='pnSan'><form id='pnSan'><ins id='pnSan'></ins><ul id='pnSan'></ul><sub id='pnSan'></sub></form><legend id='pnSan'></legend><bdo id='pnSan'><pre id='pnSan'><center id='pnSan'></center></pre></bdo></b><th id='pnSan'></th></span></q></dt></tr></i><div id='pnSan'><tfoot id='pnSan'></tfoot><dl id='pnSan'><fieldset id='pnSan'></fieldset></dl></div>

    <tfoot id='pnSan'></tfoot>

      1. laravel 4 artisan -- 如何回滚到特定的迁移状态?

        时间:2023-10-31

          <small id='O1auF'></small><noframes id='O1auF'>

          <legend id='O1auF'><style id='O1auF'><dir id='O1auF'><q id='O1auF'></q></dir></style></legend>
            <tbody id='O1auF'></tbody>
              <tfoot id='O1auF'></tfoot>

                <bdo id='O1auF'></bdo><ul id='O1auF'></ul>
                <i id='O1auF'><tr id='O1auF'><dt id='O1auF'><q id='O1auF'><span id='O1auF'><b id='O1auF'><form id='O1auF'><ins id='O1auF'></ins><ul id='O1auF'></ul><sub id='O1auF'></sub></form><legend id='O1auF'></legend><bdo id='O1auF'><pre id='O1auF'><center id='O1auF'></center></pre></bdo></b><th id='O1auF'></th></span></q></dt></tr></i><div id='O1auF'><tfoot id='O1auF'></tfoot><dl id='O1auF'><fieldset id='O1auF'></fieldset></dl></div>

                  本文介绍了laravel 4 artisan -- 如何回滚到特定的迁移状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  假设我得到了 a.phpb.phpc.phpd.php 迁移类文件.如何回滚到特定的迁移状态,例如在 b.php 中定义的状态,使用 artisan 命令?

                  Say i got a.php, b.php, c.php and d.php migration classes files. How to rollback to a specific migration state, the state defined within b.php for example, with artisan command ?

                  推荐答案

                  Laravel 5.3

                  使用 Laravel 5.3,无需编写繁重的脚本.因为它允许回滚给定数量的迁移.

                  Laravel 5.3

                  With Laravel 5.3 there is no need for heavy scripting. As it allows to rollback given number of migrations.

                  php artisan migrate:rollback --step=1
                  

                  这是手册页面供参考.

                  这篇关于laravel 4 artisan -- 如何回滚到特定的迁移状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:未找到碳类碳 下一篇:Laravel 依赖注入:什么时候需要?什么时候可以模拟 Facades?两种方法的优点?

                  相关文章

                  1. <i id='cbCuU'><tr id='cbCuU'><dt id='cbCuU'><q id='cbCuU'><span id='cbCuU'><b id='cbCuU'><form id='cbCuU'><ins id='cbCuU'></ins><ul id='cbCuU'></ul><sub id='cbCuU'></sub></form><legend id='cbCuU'></legend><bdo id='cbCuU'><pre id='cbCuU'><center id='cbCuU'></center></pre></bdo></b><th id='cbCuU'></th></span></q></dt></tr></i><div id='cbCuU'><tfoot id='cbCuU'></tfoot><dl id='cbCuU'><fieldset id='cbCuU'></fieldset></dl></div>
                  2. <legend id='cbCuU'><style id='cbCuU'><dir id='cbCuU'><q id='cbCuU'></q></dir></style></legend>

                    1. <tfoot id='cbCuU'></tfoot>

                    2. <small id='cbCuU'></small><noframes id='cbCuU'>

                        <bdo id='cbCuU'></bdo><ul id='cbCuU'></ul>