yiisoft/yii2 · error · NotSupportedException
This command is not implemented in {get_class($this)}
Error message
This command is not implemented in {get_class($this)} What it means
Error "This command is not implemented in {get_class($this)}" thrown in yiisoft/yii2.
Source
Thrown at framework/console/controllers/BaseMigrateController.php:986
* - className: string migration class name
*
* @return string generated PHP code.
* @since 2.0.8
*/
protected function generateMigrationSourceCode($params)
{
return $this->renderFile(Yii::getAlias($this->templateFile), $params);
}
/**
* Truncates the database.
* This method should be overwritten in subclasses to implement the task of clearing the database.
* @throws NotSupportedException if not overridden
* @since 2.0.13
*/
protected function truncateDatabase()
{
throw new NotSupportedException('This command is not implemented in ' . get_class($this));
}
/**
* Return the maximum name length for a migration.
*
* Subclasses may override this method to define a limit.
* @return int|null the maximum name length for a migration or `null` if no limit applies.
* @since 2.0.13
*/
protected function getMigrationNameLimit()
{
return null;
}
/**
* Returns the migration history.
* @param int|null $limit the maximum number of records in the history to be returned. `null` for "no limit".
* @return array the migration historyView on GitHub (pinned to 66f00d18a2)
When it happens
Trigger: Thrown at framework/console/controllers/BaseMigrateController.php:986 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of yiisoft/yii2@66f00d18a2 (2026-08-17).
Data as JSON: /api/errors/72945f7d70c6f87f.
Report an issue: GitHub.