Skip to content

Commit 1434e60

Browse files
authored
Fix issue migration with MySQL 5.7 (#171)
## Description Fixes an issue with MySQL 5.7 migrations where `TEXT` column type can not have a default value. This PR changes it to `nullable` instead. Resolves #169
1 parent 6d57237 commit 1434e60

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
All notable changes to `laravel-uptime-monitor` will be documented in this file
44

55
## Unreleased
6+
### Fixed
7+
- Fixed issue with migrations stub
68

79
## 3.4.0 - 2019-03-03
810
### Changed

database/migrations/create_monitors_table.php.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class CreateMonitorsTable extends Migration
2222
$table->string('look_for_string')->default('');
2323
$table->string('uptime_check_interval_in_minutes')->default(5);
2424
$table->string('uptime_status')->default(UptimeStatus::NOT_YET_CHECKED);
25-
$table->text('uptime_check_failure_reason')->default('');
25+
$table->text('uptime_check_failure_reason')->nullable();
2626
$table->integer('uptime_check_times_failed_in_a_row')->default(0);
2727
$table->timestamp('uptime_status_last_change_date')->nullable();
2828
$table->timestamp('uptime_last_check_date')->nullable();

0 commit comments

Comments
 (0)