{"record":{"id":"72945f7d70c6f87f","repo":"yiisoft/yii2","slug":"this-command-is-not-implemented-in-get-class-thi","errorCode":null,"errorMessage":"This command is not implemented in {get_class($this)}","messagePattern":"This command is not implemented in (.+?)","errorType":"console","errorClass":"NotSupportedException","httpStatus":null,"severity":"error","filePath":"framework/console/controllers/BaseMigrateController.php","lineNumber":986,"sourceCode":"     *  - className: string migration class name\n     *\n     * @return string generated PHP code.\n     * @since 2.0.8\n     */\n    protected function generateMigrationSourceCode($params)\n    {\n        return $this->renderFile(Yii::getAlias($this->templateFile), $params);\n    }\n\n    /**\n     * Truncates the database.\n     * This method should be overwritten in subclasses to implement the task of clearing the database.\n     * @throws NotSupportedException if not overridden\n     * @since 2.0.13\n     */\n    protected function truncateDatabase()\n    {\n        throw new NotSupportedException('This command is not implemented in ' . get_class($this));\n    }\n\n    /**\n     * Return the maximum name length for a migration.\n     *\n     * Subclasses may override this method to define a limit.\n     * @return int|null the maximum name length for a migration or `null` if no limit applies.\n     * @since 2.0.13\n     */\n    protected function getMigrationNameLimit()\n    {\n        return null;\n    }\n\n    /**\n     * Returns the migration history.\n     * @param int|null $limit the maximum number of records in the history to be returned. `null` for \"no limit\".\n     * @return array the migration history","sourceCodeStart":968,"sourceCodeEnd":1004,"githubUrl":"https://github.com/yiisoft/yii2/blob/66f00d18a29b520f85e8e8f1e32d1e7e7b556cac/framework/console/controllers/BaseMigrateController.php#L968-L1004","documentation":"Error \"This command is not implemented in {get_class($this)}\" thrown in yiisoft/yii2.","triggerScenarios":"Thrown at framework/console/controllers/BaseMigrateController.php:986 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"66f00d18a29b520f85e8e8f1e32d1e7e7b556cac","analyzedAt":"2026-08-17T05:17:23.470Z","schemaVersion":2},"datasetVersion":"2026-08-17T09:17:11.063Z"}