From 277563ecdb82f6710b178b8eba69a925c849128f Mon Sep 17 00:00:00 2001 From: Tam Date: Tue, 30 Jul 2019 12:52:54 +0100 Subject: [PATCH] Fix migration trying to change a column type to a table Fixes #189 Fixes #188 --- CHANGELOG.md | 1 + src/migrations/m190712_104805_new_data_format.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 50d35e0..0dd2ebe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## [Unreleased] 3.6.4 ### Fixed - Remove errant debug code causing migration to run every request (Fixes #190) +- Fix migration trying to change a column type to a table (Fixes #189, #188) ## 3.6.3 - 2019-07-25 ### Added diff --git a/src/migrations/m190712_104805_new_data_format.php b/src/migrations/m190712_104805_new_data_format.php index 7b7f22f..e97c30c 100644 --- a/src/migrations/m190712_104805_new_data_format.php +++ b/src/migrations/m190712_104805_new_data_format.php @@ -147,7 +147,7 @@ function ($carry, FieldInterface $field) use ($hasSuperTable, &$matrixFields, &$ $this->alterColumn( $table, $handle, - $contentTable + $columnType ); continue; } @@ -176,7 +176,7 @@ function ($carry, FieldInterface $field) use ($hasSuperTable, &$matrixFields, &$ $this->alterColumn( $table, $fieldColumnPrefix . $field->handle, - $contentTable + $columnType ); continue; }