From 728e3709d9bf72f8b11f5631c5c0683d85fd43ab Mon Sep 17 00:00:00 2001 From: Ben Croker Date: Sat, 17 Apr 2021 09:02:36 +0100 Subject: [PATCH] Minor tweaks --- src/migrations/Install.php | 2 +- src/migrations/m181009_120000_update_blacklist_settings.php | 2 +- src/migrations/m210216_120000_migrate_settings.php | 2 +- src/migrations/m210217_120000_add_value_column.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/migrations/Install.php b/src/migrations/Install.php index ea7a281..f1c0922 100644 --- a/src/migrations/Install.php +++ b/src/migrations/Install.php @@ -57,7 +57,7 @@ public function safeUp(): bool */ public function safeDown(): bool { - $this->dropTableIfExists('{{%snaptcha}}'); + $this->dropTableIfExists(SnaptchaRecord::tableName()); return true; } diff --git a/src/migrations/m181009_120000_update_blacklist_settings.php b/src/migrations/m181009_120000_update_blacklist_settings.php index bfbb4e2..d2e3753 100644 --- a/src/migrations/m181009_120000_update_blacklist_settings.php +++ b/src/migrations/m181009_120000_update_blacklist_settings.php @@ -40,7 +40,7 @@ public function safeUp(): bool */ public function safeDown(): bool { - echo "m181009_120000_update_blacklist_settings cannot be reverted.\n"; + echo self::class." cannot be reverted.\n"; return false; } diff --git a/src/migrations/m210216_120000_migrate_settings.php b/src/migrations/m210216_120000_migrate_settings.php index 5ca04cc..a14849d 100644 --- a/src/migrations/m210216_120000_migrate_settings.php +++ b/src/migrations/m210216_120000_migrate_settings.php @@ -47,7 +47,7 @@ public function safeUp(): bool */ public function safeDown(): bool { - echo "m181009_120000_update_blacklist_settings cannot be reverted.\n"; + echo self::class." cannot be reverted.\n"; return false; } diff --git a/src/migrations/m210217_120000_add_value_column.php b/src/migrations/m210217_120000_add_value_column.php index 7a65a05..b3b0779 100644 --- a/src/migrations/m210217_120000_add_value_column.php +++ b/src/migrations/m210217_120000_add_value_column.php @@ -45,7 +45,7 @@ public function safeUp(): bool */ public function safeDown(): bool { - echo "m181009_120000_update_blacklist_settings cannot be reverted.\n"; + echo self::class." cannot be reverted.\n"; return false; }