From 13242b6fccf1d8d855038279c9fea3d836f9dca0 Mon Sep 17 00:00:00 2001 From: Joren de Graaf Date: Sat, 8 Aug 2026 14:51:32 +0200 Subject: [PATCH] Add Task migration --- migrations/Version20260808124850.php | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 migrations/Version20260808124850.php diff --git a/migrations/Version20260808124850.php b/migrations/Version20260808124850.php new file mode 100644 index 0000000..24ed894 --- /dev/null +++ b/migrations/Version20260808124850.php @@ -0,0 +1,31 @@ +addSql('CREATE TABLE task (id INT AUTO_INCREMENT NOT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, estimated_duration_minutes INT DEFAULT NULL, priority VARCHAR(20) NOT NULL, category VARCHAR(100) DEFAULT NULL, is_recurring TINYINT NOT NULL, is_active TINYINT NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, PRIMARY KEY (id)) DEFAULT CHARACTER SET utf8mb4'); + } + + public function down(Schema $schema): void + { + // this down() migration is auto-generated, please modify it to your needs + $this->addSql('DROP TABLE task'); + } +}