Skip to content

Commit

Permalink
PostgreSQL環境にてカスタムコンテンツがインストールできない問題を改善
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Feb 27, 2024
1 parent dd255dd commit 96ac6fe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

}

0 comments on commit 96ac6fe

Please sign in to comment.