Skip to content

Commit bbe4426

Browse files
committed
Fixed uninstallation SQL error
1 parent 8663ddd commit bbe4426

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Fixed
66
- Fixed a bug where it wasn’t possible to create or edit webhooks if a plugin contained an invalid class. ([#8](https://github.com/craftcms/webhooks/issues/8))
77
- Fixed a SQL error that would occur on installs that had been updated from Webhooks 1.x.
8+
- Fixed a SQL error that occurred when attempting to uninstall Webhooks.
89

910
## 2.0.0 - 2019-03-19
1011

src/migrations/Install.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ public function safeUp()
7777
public function safeDown()
7878
{
7979
// Drop the DB table
80+
$this->dropTableIfExists('{{%webhookrequests}}');
8081
$this->dropTableIfExists('{{%webhooks}}');
8182
$this->dropTableIfExists('{{%webhookgroups}}');
82-
$this->dropTableIfExists('{{%webhookrequests}}');
8383
}
8484
}

0 commit comments

Comments
 (0)