From e26637834b0ed2c9c6812757cb85bb68f06cbad1 Mon Sep 17 00:00:00 2001 From: "art.dambrine" Date: Mon, 5 Apr 2021 20:28:46 +0200 Subject: [PATCH] updated at nullable=true --- migrations/Version20210405182831.php | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 migrations/Version20210405182831.php diff --git a/migrations/Version20210405182831.php b/migrations/Version20210405182831.php new file mode 100644 index 0000000..a9aaee6 --- /dev/null +++ b/migrations/Version20210405182831.php @@ -0,0 +1,31 @@ +addSql('ALTER TABLE pokemon CHANGE updated_at updated_at DATETIME DEFAULT NULL'); + } + + public function down(Schema $schema) : void + { + // this down() migration is auto-generated, please modify it to your needs + $this->addSql('ALTER TABLE pokemon CHANGE updated_at updated_at DATETIME NOT NULL'); + } +}