{"record":{"id":"23a79f8ae607cf3e","repo":"yiisoft/yii2","slug":"does-not-support-getting-unique-indexes-informa","errorCode":null,"errorMessage":"{} does not support getting unique indexes information.","messagePattern":"(.+?) does not support getting unique indexes information\\.","errorType":"exception","errorClass":"yii\\base\\NotSupportedException","httpStatus":null,"severity":"error","filePath":"framework/db/Schema.php","lineNumber":357,"sourceCode":"     *\n     * Each array element is of the following structure:\n     *\n     * ```\n     * [\n     *  'IndexName1' => ['col1' [, ...]],\n     *  'IndexName2' => ['col2' [, ...]],\n     * ]\n     * ```\n     *\n     * This method should be overridden by child classes in order to support this feature\n     * because the default implementation simply throws an exception\n     * @param TableSchema $table the table metadata\n     * @return array all unique indexes for the given table.\n     * @throws NotSupportedException if this method is called\n     */\n    public function findUniqueIndexes($table)\n    {\n        throw new NotSupportedException(get_class($this) . ' does not support getting unique indexes information.');\n    }\n\n    /**\n     * Returns the ID of the last inserted row or sequence value.\n     * @param string $sequenceName name of the sequence object (required by some DBMS)\n     * @return string the row ID of the last row inserted, or the last value retrieved from the sequence object\n     * @throws InvalidCallException if the DB connection is not active\n     * @see https://www.php.net/manual/en/function.PDO-lastInsertId.php\n     */\n    public function getLastInsertID($sequenceName = '')\n    {\n        if ($this->db->isActive) {\n            return $this->db->pdo->lastInsertId($sequenceName === '' ? null : $this->quoteTableName($sequenceName));\n        }\n\n        throw new InvalidCallException('DB Connection is not active.');\n    }\n","sourceCodeStart":339,"sourceCodeEnd":375,"githubUrl":"https://github.com/yiisoft/yii2/blob/66f00d18a29b520f85e8e8f1e32d1e7e7b556cac/framework/db/Schema.php#L339-L375","documentation":"Error \"{} does not support getting unique indexes information.\" thrown in yiisoft/yii2.","triggerScenarios":"Thrown at framework/db/Schema.php:357 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"}