From 238dafeaf3aba8ea33550c6b909409143deec444 Mon Sep 17 00:00:00 2001 From: Sergei Tigrov Date: Sat, 14 Dec 2024 10:59:59 +0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Sergei Predvoditelev --- CHANGELOG.md | 2 +- src/Migrator.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3682c79..207cb2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ - Enh #274: Refactor for compatibility with `yiisoft/db` package (@Tigrov) - Bug #277: Fix when there is a namespace but the directory does not exist (@Tigrov) -- Enh #279: Use `ColumnBuilder` class to create table column definitions (@Tigrov) +- Chg #279: Use `ColumnBuilder` class to create table column definitions (@Tigrov) ## 1.2.0 November 27, 2024 diff --git a/src/Migrator.php b/src/Migrator.php index 40848ee..9787621 100644 --- a/src/Migrator.php +++ b/src/Migrator.php @@ -148,8 +148,6 @@ private function createMigrationHistoryTable(): void $tableName = $this->db->getQuoter()->getRawTableName($this->historyTable); $this->informer->beginCreateHistoryTable('Creating migration history table "' . $tableName . '"...'); - $b = $this->createBuilder(new NullMigrationInformer()); - $b->createTable($this->historyTable, [ 'id' => ColumnBuilder::primaryKey(), 'name' => ColumnBuilder::string($this->migrationNameLimit)->notNull(),