From e90ff67e33af4de4df3f9ae06154d5afc4996e45 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Wed, 21 Sep 2022 12:20:39 +0200 Subject: [PATCH] add urgent property to calendar entity --- .../ChillCalendarBundle/Entity/Calendar.php | 5 +++ .../migrations/Version20220921101643.php | 33 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 src/Bundle/ChillCalendarBundle/migrations/Version20220921101643.php diff --git a/src/Bundle/ChillCalendarBundle/Entity/Calendar.php b/src/Bundle/ChillCalendarBundle/Entity/Calendar.php index 018f073bd..cb0d20fca 100644 --- a/src/Bundle/ChillCalendarBundle/Entity/Calendar.php +++ b/src/Bundle/ChillCalendarBundle/Entity/Calendar.php @@ -203,6 +203,11 @@ class Calendar implements TrackCreationInterface, TrackUpdateInterface */ private string $status = self::STATUS_VALID; + /** + * @ORM\Column(type="boolean", nullable=true) + */ + private ?bool $urgent = false; + public function __construct() { $this->comment = new CommentEmbeddable(); diff --git a/src/Bundle/ChillCalendarBundle/migrations/Version20220921101643.php b/src/Bundle/ChillCalendarBundle/migrations/Version20220921101643.php new file mode 100644 index 000000000..270c57da4 --- /dev/null +++ b/src/Bundle/ChillCalendarBundle/migrations/Version20220921101643.php @@ -0,0 +1,33 @@ +addSql('ALTER TABLE chill_calendar.calendar ADD urgent BOOLEAN 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 urgent'); + + } +}