Skip to content

Commit f4a64ed

Browse files
committed
Make columns nullable
1 parent ddcc752 commit f4a64ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

database/migrations/increase_redirect_error_table_url_length.php.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class IncreaseRedirectErrorTableUrlLength extends Migration
1717

1818
Schema::table('errors', function (Blueprint $table): void {
1919
$table->string('url', 2048)->change();
20-
$table->string('url_md5')->index()->after('url');
20+
$table->string('url_md5')->index()->after('url')->nullable();
2121
});
2222

2323
Error::each(function (Error $error) {

database/migrations/increase_redirect_redirects_table_url_length.php.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class IncreaseRedirectRedirectsTableUrlLength extends Migration
1717

1818
Schema::table('redirects', function (Blueprint $table): void {
1919
$table->string('source', 2048)->change();
20-
$table->string('source_md5')->index()->after('source');
20+
$table->string('source_md5')->index()->after('source')->nullable();
2121
$table->string('destination', 2048)->change();
2222
});
2323

0 commit comments

Comments
 (0)