mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-19 08:44:24 +00:00
41 lines
921 B
PHP
41 lines
921 B
PHP
<?php
|
|
|
|
/**
|
|
* Chill is a software for social workers
|
|
*
|
|
* For the full copyright and license information, please view
|
|
* the LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Chill\Migrations\Calendar;
|
|
|
|
use Doctrine\DBAL\Schema\Schema;
|
|
use Doctrine\Migrations\AbstractMigration;
|
|
|
|
final class Version20211119173557 extends AbstractMigration
|
|
{
|
|
public function down(Schema $schema): void
|
|
{
|
|
$this->throwIrreversibleMigrationException();
|
|
}
|
|
|
|
public function getDescription(): string
|
|
{
|
|
return 'remove comment on deprecated json_array type';
|
|
}
|
|
|
|
public function up(Schema $schema): void
|
|
{
|
|
$columns = [
|
|
'chill_calendar.cancel_reason.name',
|
|
'chill_calendar.invite.status',
|
|
];
|
|
|
|
foreach ($columns as $col) {
|
|
$this->addSql("COMMENT ON COLUMN {$col} IS NULL");
|
|
}
|
|
}
|
|
}
|