Skip to content

Commit

Permalink
Bug #1084 Fix issue with avatar images long URL
Browse files Browse the repository at this point in the history
  • Loading branch information
flohdez committed Aug 2, 2024
1 parent c00aa40 commit 9f90502
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);

use Migrations\AbstractMigration;

class ChangeAvatarColumnTypeInSocialAccounts extends AbstractMigration
{
/**
* Change Method.
*
* More information on this method is available here:
* https://book.cakephp.org/phinx/0/en/migrations.html#the-change-method
* @return void
*/
public function change(): void
{
$table = $this->table('social_accounts');
$table->changeColumn('avatar', 'text', [
'default' => null,
'null' => true,
]);
$table->update();
}
}

0 comments on commit 9f90502

Please sign in to comment.