diff --git a/plugins/bc-custom-content/config/Migrations/20230117094760_CreateCustomFields.php b/plugins/bc-custom-content/config/Migrations/20230117094760_CreateCustomFields.php index fcaa4f86ea..e5fffae6a9 100644 --- a/plugins/bc-custom-content/config/Migrations/20230117094760_CreateCustomFields.php +++ b/plugins/bc-custom-content/config/Migrations/20230117094760_CreateCustomFields.php @@ -82,7 +82,7 @@ public function up(): void 'limit' => null, 'null' => true, ]) - ->addColumn('max_length', 'boolean', [ + ->addColumn('max_length', 'integer', [ 'default' => false, 'limit' => null, 'null' => true, diff --git a/plugins/bc-custom-content/config/Migrations/20240203000000_AlterMaxLengthOnCustomFields.php b/plugins/bc-custom-content/config/Migrations/20240203000000_AlterMaxLengthOnCustomFields.php index 36105e0291..29451dd50b 100755 --- a/plugins/bc-custom-content/config/Migrations/20240203000000_AlterMaxLengthOnCustomFields.php +++ b/plugins/bc-custom-content/config/Migrations/20240203000000_AlterMaxLengthOnCustomFields.php @@ -11,13 +11,18 @@ class AlterMaxLengthOnCustomFields extends BcMigration */ public function change() { - $this->table('custom_fields') - ->changeColumn('max_length', 'integer', [ - 'default' => null, - 'limit' => null, - 'null' => true, - ]) - ->update(); + // 2024/02/27 ryuring + // PostgreSQLのカラム変更ができないため、20230117094760_CreateCustomFields.php にて直接変更し + // こちらでは何もしないように調整 + // phinxでの管理に影響する可能性があるため削除しないおく + +// $this->table('custom_fields') +// ->changeColumn('max_length', 'integer', [ +// 'default' => null, +// 'limit' => null, +// 'null' => true, +// ]) +// ->update(); } }