From 6116b2b69a1ff80edc8cdb14d49091f33c051c62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Libor=20Dan=C4=9Bk?= Date: Sun, 1 Sep 2024 11:44:33 +0200 Subject: [PATCH] Adds migration to increase length of url column --- src/migrations/m240901_112003_url_length.php | 33 ++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/migrations/m240901_112003_url_length.php diff --git a/src/migrations/m240901_112003_url_length.php b/src/migrations/m240901_112003_url_length.php new file mode 100644 index 0000000..98a3df7 --- /dev/null +++ b/src/migrations/m240901_112003_url_length.php @@ -0,0 +1,33 @@ +alterColumn('{{%webhooks}}', 'url', $this->mediumText()->notNull()); + $this->alterColumn('{{%webhookrequests}}', 'url', $this->mediumText()); + + return true; + } + + /** + * @inheritdoc + */ + public function safeDown(): bool + { + $this->alterColumn('{{%webhooks}}', 'url', $this->string()->notNull()); + $this->alterColumn('{{%webhookrequests}}', 'url', $this->string()); + + return true; + } +}