Add private comment to rendez-vous

This commit is contained in:
2022-04-25 15:47:51 +02:00
parent 79fa030323
commit 171cc79a4a
6 changed files with 68 additions and 1 deletions

View File

@@ -0,0 +1,34 @@
<?php
declare(strict_types=1);
namespace Chill\Migrations\Calendar;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220425131140 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add private comment to calendar';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE chill_calendar.calendar ADD prcomment_comment TEXT DEFAULT NULL');
$this->addSql('ALTER TABLE chill_calendar.calendar ADD prcomment_date TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL');
$this->addSql('ALTER TABLE chill_calendar.calendar ADD prcomment_userId INT DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE chill_calendar.calendar DROP prcomment_comment');
$this->addSql('ALTER TABLE chill_calendar.calendar DROP prcomment_date');
$this->addSql('ALTER TABLE chill_calendar.calendar DROP prcomment_userId');
}
}