mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 22:32:40 +08:00
limit condition changed
This commit is contained in:
@ -204,10 +204,7 @@ class MigrateController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function actionDown($limit = 1)
|
public function actionDown($limit = 1)
|
||||||
{
|
{
|
||||||
|
if ($limit === 'all') {
|
||||||
$downAll = ($limit === 'all');
|
|
||||||
|
|
||||||
if ($downAll) {
|
|
||||||
$limit = null;
|
$limit = null;
|
||||||
} else {
|
} else {
|
||||||
$limit = (int) $limit;
|
$limit = (int) $limit;
|
||||||
@ -265,9 +262,7 @@ class MigrateController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function actionRedo($limit = 1)
|
public function actionRedo($limit = 1)
|
||||||
{
|
{
|
||||||
$redoAll = ($limit === 'all');
|
if ($limit === 'all') {
|
||||||
|
|
||||||
if ($redoAll) {
|
|
||||||
$limit = null;
|
$limit = null;
|
||||||
} else {
|
} else {
|
||||||
$limit = (int) $limit;
|
$limit = (int) $limit;
|
||||||
@ -432,9 +427,7 @@ class MigrateController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function actionHistory($limit = 10)
|
public function actionHistory($limit = 10)
|
||||||
{
|
{
|
||||||
$showAll = ($limit === 'all');
|
if ($limit === 'all') {
|
||||||
|
|
||||||
if ($showAll) {
|
|
||||||
$limit = null;
|
$limit = null;
|
||||||
} else {
|
} else {
|
||||||
$limit = (int) $limit;
|
$limit = (int) $limit;
|
||||||
@ -477,9 +470,7 @@ class MigrateController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function actionNew($limit = 10)
|
public function actionNew($limit = 10)
|
||||||
{
|
{
|
||||||
$showAll = ($limit === 'all');
|
if ($limit === 'all') {
|
||||||
|
|
||||||
if ($showAll) {
|
|
||||||
$limit = null;
|
$limit = null;
|
||||||
} else {
|
} else {
|
||||||
$limit = (int) $limit;
|
$limit = (int) $limit;
|
||||||
|
|||||||
Reference in New Issue
Block a user