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; + } +}