diff --git a/framework/yii/db/sqlite/QueryBuilder.php b/framework/yii/db/sqlite/QueryBuilder.php index 01f5691..99198ae 100644 --- a/framework/yii/db/sqlite/QueryBuilder.php +++ b/framework/yii/db/sqlite/QueryBuilder.php @@ -200,7 +200,7 @@ class QueryBuilder extends \yii\db\QueryBuilder * @return string the SQL statement for removing a primary key constraint from an existing table. * @throws NotSupportedException this is not supported by SQLite * */ - public function dropPrimarykey($name, $table) + public function dropPrimaryKey($name, $table) { throw new NotSupportedException(__METHOD__ . ' is not supported by SQLite.'); } diff --git a/tests/unit/framework/db/QueryBuilderTest.php b/tests/unit/framework/db/QueryBuilderTest.php index ff6d4c1..869b501 100644 --- a/tests/unit/framework/db/QueryBuilderTest.php +++ b/tests/unit/framework/db/QueryBuilderTest.php @@ -119,7 +119,7 @@ class QueryBuilderTest extends DatabaseTestCase $this->assertEquals(1, count($tableSchema->primaryKey)); //DROP - $qb->db->createCommand()->dropPrimarykey($pkeyName, $tableName)->execute(); + $qb->db->createCommand()->dropPrimaryKey($pkeyName, $tableName)->execute(); $qb = $this->getQueryBuilder(); // resets the schema $tableSchema = $qb->db->getSchema()->getTableSchema($tableName); $this->assertEquals(0, count($tableSchema->primaryKey));